Debian 9: Difference between revisions
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
= Install voipmonitor sensor and GUI for '''64bit''' arch= | = Install voipmonitor sensor and GUI for '''64bit''' arch= | ||
==Installation of packages needed by voipmonitor== | ==Installation of packages needed by voipmonitor's GUI== | ||
to works correctly (we assume latest mysql-5.7 is already installed link [[http://voipmonitor.org/doc/Mysql_5.7#Debian_9]]) | to works correctly (we assume latest mysql-5.7 is already installed link [[http://voipmonitor.org/doc/Mysql_5.7#Debian_9]]) | ||
apt-get -y install php-gd php-mysql php php-cli apache2 libapache2-mod-php tshark mtr php-mcrypt librsvg2-bin gsfonts rrdtool | apt-get -y install php-gd php-mysql php php-cli apache2 libapache2-mod-php tshark mtr php-mcrypt librsvg2-bin gsfonts rrdtool php7.0-mbstring php7.0-zip | ||
(When asked if non-superuser can capture traffic You can answer No) | (When asked if non-superuser can capture traffic You can answer No) | ||
Line 14: | Line 14: | ||
mkdir /usr/src/voipmonitor | mkdir /usr/src/voipmonitor | ||
cd /usr/src/voipmonitor | cd /usr/src/voipmonitor | ||
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz | wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz -O x.tar.gz | ||
tar xzf | tar xzf x.tar.gz | ||
cd voipmonitor-* | cd voipmonitor-* | ||
./install-script.sh | ./install-script.sh | ||
Line 46: | Line 46: | ||
/etc/init.d/voipmonitor start | /etc/init.d/voipmonitor start | ||
Enable service start via | Enable service start via sysV with: | ||
systemctl enable voipmonitor | systemctl enable voipmonitor |
Latest revision as of 02:38, 26 February 2019
Install Mysql
Please, follow this how to: [[1]]
Install voipmonitor sensor and GUI for 64bit arch
Installation of packages needed by voipmonitor's GUI
to works correctly (we assume latest mysql-5.7 is already installed link [[2]])
apt-get -y install php-gd php-mysql php php-cli apache2 libapache2-mod-php tshark mtr php-mcrypt librsvg2-bin gsfonts rrdtool php7.0-mbstring php7.0-zip
(When asked if non-superuser can capture traffic You can answer No)
create database needed for voipmonitor
mysqladmin create voipmonitor
Installing sensor - voipmonitor service
mkdir /usr/src/voipmonitor cd /usr/src/voipmonitor wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz -O x.tar.gz tar xzf x.tar.gz cd voipmonitor-* ./install-script.sh
Installing IOncube - php loader / decryptor
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.0.so -O /usr/lib/php/20151012/ioncube_loader_lin_7.0.so echo "zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so" > /etc/php/7.0/mods-available/ioncube.ini ln -s /etc/php/7.0/mods-available/ioncube.ini /etc/php/7.0/apache2/conf.d/01-ioncube.ini ln -s /etc/php/7.0/mods-available/ioncube.ini /etc/php/7.0/cli/conf.d/01-ioncube.ini
Installing voipmonitor GUI
cd /var/www/html rm -f index.html wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=56&festry" -O w.tar.gz tar xzf w.tar.gz mv voipmonitor-gui*/* ./
Finalizing steps
For working alerts / reports run periodicaly script using scheduller and reload config
echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab kill -HUP `pgrep cron`
Create spooldir for sensor
mkdir /var/spool/voipmonitor/
Set privileges for apache
chown www-data /var/spool/voipmonitor/ chown -R www-data /var/www/html /etc/init.d/apache2 restart
Edit sensor settings and start sensor - edit /etc/voipmonitor.conf and set appropriate mysql password,save* options and interface option (interface names gets changed in deb9)
/etc/init.d/voipmonitor start
Enable service start via sysV with:
systemctl enable voipmonitor