How to add network monitoring to your 3CX linux appliance
Disclaimer: This is intended for advanced users only. It is not supported by us or 3CX.
To follow this guide you will need a reasonable understanding of Linux. You can copy/paste the instructions below and get it done, but it is advised that you try to understand what we are doing.
STEP1 – make sure you have SSH access to your linux box and that you know your admin credentials.
STEP2- once you login to the unit lets validate what version of linux we are running by running cat /etc/os-release you should get PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
STEP2A – lets also validate that 3CX services are running by running systemctl list-units --type=service
you should get
UNIT LOAD ACTIVE SUB DESCRIPTION
3CXAudioProvider01.service loaded active running 3CX PhoneSystem 01 Audio Provider Server
3CXCallFlow01.service loaded active running 3CX PhoneSystem 01 CallFlow Server
3CXCfgServ01.service loaded active running 3CX PhoneSystem Configuration Service
3CXEventNotificationManager.service loaded active running 3CX Event Notification Manager
3CXIVR01.service loaded active running 3CX PhoneSystem 01 IVR Server
3CXMediaServer.service loaded active running 3CX PhoneSystem Media Server
3CXPhoneSystem01.service loaded active running 3CX PhoneSystem 01 SIP Server
3CXPhoneSystemMC01.service loaded active running 3CX PhoneSystem 01 Management Console
3CXQueueManager01.service loaded active running 3CX PhoneSystem 01 Queue Manager Server
3CXSystemService01.service loaded active running 3CX PhoneSystem 01 System Server
3CXTunnel01.service loaded active running 3CX PhoneSystem 01 SIP/RTP Tunneling Proxy
nginx.service loaded active running A high performance web server and a reverse proxy server
STEP3 – confirm what firewall is running on the box by running sudo iptables -L -v
STEP4 – Update all the drivers on the box by running apt-get update -y
STEP5 – Install basic prerequisites apt-get install wget gnupg -y
STEP6 – Download the correct version of ntop (refer back to the version of linux you are running). In our case it is Debian 9 (Stretch) so we get wget https://packages.ntop.org/apt/stretch/all/apt-ntop.deb and apt install ./apt-ntop.deb
STEP7 – install additional packages apt-get clean all apt-get update apt-get install pfring-dkms nprobe ntopng n2disk cento
STEP8 – Turn ntop on systemctl start ntopng systemctl enable ntopng
STEP9 – open port TCP 3000 on the firewall sudo iptables -A INPUT -p tcp --dport 3000 -j ACCEPT
STEP10 – Validate it is working systemctl status ntopng and ss -plunt | grep 3000
STEP10A – connect to the system via a browser <hostname>:3000
STEP11 – if all is working then make sure to save the firewall rules iptables-save