Archive for August, 2007

CentOS Extras

August 28th, 2007 No comments

How can I install the packages from the EPEL software repository?

There are repository rpm packages for RHEL4 and RHEL5. The repository package installs the repo details on your local system for yum or up2date to use. Then you can install packages with your usual method, and the EPEL repository is included.

su -c 'rpm -Uvh'
su -c 'yum -y install foo'
Categories: Uncategorized Tags:

SIP debug stuff

August 15th, 2007 No comments

If you’re debugging SIP, here are a few tools can make all the difference:

SIPp on Sourceforge,
SIPp config sample at: SIPfoundry,
callflow produces nice diagrams and sip_scenario is a similar product producing HTML.
And of course Wireshark (formerly Ethereal) and tcpdump.

A couple of  tips when using sip_scenario:

tcpdump -s 0 -w pk.cap
-s … don’t truncate packets to default length of 96
-w … write output to pk.cap

sip_scenario -g:30 pk.cap … output ip addr port 5060 in column 1
-g:30 … set column width to 30 (chars  wide?)

move the generated html files to a folder on your webserver and voila!

For more detailed help and samples: sip_scenario -syntax++

Categories: Uncategorized Tags:

chkconfig for Debian

August 10th, 2007 No comments

And here I’ve been wasting time installing chkconfig for Debian …

update-rc.d service_name defaults 20 90

Check man update-rc.d for details.

Categories: Uncategorized Tags:

ntop on Ubuntu Feisty

August 10th, 2007 1 comment

Not sure how but my Fawn automatically starts ntop on reboot. Either this is the default when you install the package or I’ve simply forgotten about creating links in /etc/rc3.d.

However, while everything looks nice, the network load info was missing. Also, restarting ntop (or rebooting) would lose all stats.

A quick look around turned up ‘rrd’ or Round Robin Database which is installed with rrdtool and then activating the plugin of the same name in ntop. But this lead to an error indicating that it couldn’t create/access files in /var/lib/ntop/rrd. Since ntop is launched at boot under control of user ‘ntop’, the solution was to simply give ownership of /var/lib/ntop/rrd to ntop.

Categories: Uncategorized Tags: