Blogs on System Administration, Scripting, System Monitoring, Cloud Computing & Virtualizaton, VoIP Systems, SMS Systems and Web Applications Development.

How to install Voipmonitor in Linux Server?


Introduction

This article is a complete guide to install Voipmonitor server with database and without its GUI which is actually licensed. 

Description

You can read its full description and features at http://www.voipmonitor.org/.

Step # 1: (Install dependencies)

For Debian:

$ sudo apt-get -y install libvorbis-dev libpcap-dev libpng12-dev libfftw3-dev libjson0-dev libssh-dev librrd-dev libglib2.0-dev liblzma-dev liblzo2-dev

For Centos/Redhat:

$ sudo yum install -y libogg-devel libvorbis-devel libpcap-devel libpng-devel fftw-devel json-c-devel libssh2-devel rrdtool-devel glib2-devel xz-devel lzo-devel

Install latest CMAKE as following:

$ cd /usr/src
$ sudo wget https://cmake.org/files/v3.9/cmake-3.9.2.tar.gz
$ sudo tar -zxvf cmake-3.9.2.tar.gz
$ cd cmake-3.9.2
$ sudo ./bootstrap --prefix=/usr
$ sudo gmake
$ sudo make
$ sudo make install
 

Install Snappy library as following:

$ cd /usr/src
$ sudo git clone https://github.com/google/snappy.git
$ cd snappy/
$ sudo mkdir build
$ cd build
$ sudo cmake ../
$ sudo make
$ sudo make install

Install latest Curl package as following:

$ cd /usr/src
$ sudo wget https://curl.haxx.se/download/curl-7.55.1.tar.gz
$ sudo tar -zxvf curl-7.55.1.tar.gz
$ cd curl-7.55.1
$ sudo ./configure
$ sudo make
$ sudo make install

Install gperftools which is a collection of performance tools for Linux, including a thread-caching memory allocator (tcmalloc), a CPU profiler, a heap profiler, and a heap checker.

$ cd /usr/src/
$ sudo git clone https://github.com/gperftools/gperftools
$ cd gperftools
$ sudo ./autogen.sh
$ sudo ./configure --prefix /usr
$ sudo make
$ sudo make install

Step # 2: (Install Voipmonitor)

Install Voipmonitor service as following:

$ cd /usr/src
$ sudo git clone https://github.com/voipmonitor/sniffer.git
$ cd sniffer/
$ sudo ./configure
$ sudo make
$ sudo make install

Step # 3: (Configure Voipmonitor)

Install init Service for Voipmonitor:

$ cd /usr/src/
$ cd sniffer/config/init.d/
$ sudo cp voipmonitor /etc/init.d/
$ sudo chmod a+x /etc/init.d/voipmonitor

Place the voipmonitor configuration file in appropriate path:

$ cd /usr/src/
$ cd sniffer/config/
$ sudo cp voipmonitor.conf /etc/
$ sudo chmod a+x /etc/voipmonitor.conf

Create database for in your MySQL Server:

$ sudo mysql -h localhost -u root -p -e "create database voipmonitor;"

Edit the configuration file for MySQL database parameters:

$ sudo vi /etc/voipmonitor.conf
mysqlhost = localhost
mysqlport = 3306
mysqlusername =
mysqlpassword =
mysqlsocket =
mysqldb =

Step # 4: (Starting Voipmonitor)

$ sudo service voipmonitor start
Starting voipmonitor: voipmonitor[24332]: set buffer memory limit to 1513814016
Loading configuration from file /etc/voipmonitor.conf OK
voipmonitor[24332]: set buffer memory limit to 1513814016
voipmonitor version 20.4.4
voipmonitor[24332]: resolve host localhost to 127.0.0.1
voipmonitor[24332]: start voipmonitor - version 20.4.4
local time 2017-09-14 12:58:14
voipmonitor[24332]: local time 2017-09-14 12:58:14
voipmonitor[24332]: detected rrdtool version 10308

When voipmonitor service is started, it will automatically create relevant tables in the specified database as following:

$ sudo mysql -h localhost -u root -p
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 170 Server version: 5.6.37-log MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use voipmonitor;
mysql> show tables;
+-----------------------+
| Tables_in_voipmonitor |
+-----------------------+
| cache_number_location |
| cdr                   |
| cdr_country_code      |
| cdr_dtmf              |
| cdr_next              |
| cdr_proxy             |
| cdr_reason            |
| cdr_rtp               |
| cdr_sip_request       |
| cdr_sip_response      |
| cdr_siphistory        |
| cdr_sipresp           |
| cdr_tar_part          |
| cdr_ua                |
| contenttype           |
| files                 |
| filter_domain         |
| filter_ip             |
| filter_sip_header     |
| filter_telnum         |
| livepacket            |
| log_sensor            |
| message               |
| message_country_code  |
| message_proxy         |
| register              |
| register_failed       |
| register_state        |
| rtp_stat              |
| sensor_config         |
| sensors               |
| system                |
+-----------------------+
32 rows in set (0.00 sec)

0 comments:

Post a Comment

Please Enter your Comments Here.