Sniffer installation

From VoIPmonitor.org
Jump to navigation Jump to search

VoIP monitor sniffer can be installed in two ways - either as static binary which will run on any Linux distribution with kernels >= 2.6.18 or compiled from sources.

Static binary

Static binary for 32bit or 64bit can be downloaded from http://www.voipmonitor.org/download pages. Step by step for 64bit linux procedure:

tar xzf voipmonitor-*-static.tar.gz
cd voipmonitor-*-static
./install-script.sh
cp voipmonitor.conf /etc/
mysqladmin create voipmonitor
# Now edit configuration file /etc/voipmonitor.conf and run voipmonitor 
/etc/init.d/voipmonitor start

Compile shared binary

Debian 7.0

apt-get install build-essential git libmysqlclient-dev libvorbis-dev libpcap-dev apache2 php5-mysql php5-gd mysql-server unixodbc-dev libsnappy-dev libssl-dev
cd /usr/src
git clone https://github.com/voipmonitor/sniffer.git
cd sniffer
./configure 
make
make install
mkdir /var/spool/voipmonitor
mysqladmin create voipmonitor
cp config/voipmonitor.conf /etc/
#edit file /etc/voipmonitor.conf to your needs
cp config/init.d/voipmonitor /etc/init.d/
update-rc.d voipmonitor defaults
/etc/init.d/voipmonitor start

Centos

yum groupinstall 'Development Tools' 
yum install git unixODBC-devel mysql-devel libogg libogg-devel vorbis-tools libvorbis libvorbis-devel libpcap-devel zlib-devel 
wget https://snappy.googlecode.com/files/snappy-1.1.1.tar.gz 
tar xzf snappy-1.1.1.tar.gz
cd snappy-1.1.1
./configure
make
make install
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
git clone https://github.com/voipmonitor/sniffer.git
cd voipmonitor-svn
./configure
make
make install
mkdir /var/spool/voipmonitor
/etc/init.d/mysqld start
mysqladmin create voipmonitor
cp config/voipmonitor.conf /etc/
#edit file /etc/voipmonitor.conf to your needs
cp config/init.d/voipmonitor /etc/init.d/
chkconfig --add voipmonitor
chkconfig voipmonitor on
/etc/init.d/voipmonitor start












































.