Alerts and notifications

Scubadave112

Member
Jan 24, 2020
30
1
8
32
I really think I can increase ustomer satisfaction by being more proactive In monitoring their systems. Can any one suggest a way to setup alerts or notifications when certain events occur?

for example

1. A phone unregistered
2. A specific hangup cause
3. A MOS lowers than 4.3
4. A device went 10+ days without provisioning

knowing information like this would allow me to get in front of problems before my customers submit a ticket

or we can’t think of a way to do this with a script maybe you guys know of some good monitoring or SNMP solutions I’m open to paid or open source options
 

Scubadave112

Member
Jan 24, 2020
30
1
8
32
We do a lot of monitoring with the Opensource version of Nagios (https://www.nagios.org/)

There is a FreeSWITCH plugin available here: https://github.com/kjhosein/nagios-freeswitch-plugin
sorry if I sound dumb... I spun up a new Debian machine and installed Nagios and everything looks good there.... then I go to the GitHub page you provided and the first line in the instructions has me thrown off....

check_freeswitch_health.pl must be installed in the Nagios plugins directory on the host system (not the Nagios server). It is called via NRPE.

so it says that the .pl must be installed in the nation plugins directory on the host system, not the Nagios server.. so if not the Nagios server. I assume the fusion server and do I create a directory somewhere called plugins, does it matter where..... and to install the .pl what do I run and where...

I saw the guide from "inside-out.xyz" but I am still confused... and what If I want to know something specific, like when a phone loses registration or failed provisioning attempt.... if you know any cool resources I could use to dive deeper into this that would be great but Nagios seems pretty robust and beyond capable but has a large learning curve
 

Adrian Fretwell

Active Member
Aug 13, 2017
586
127
43
Ok, I will try to explain...
Many organisations, use Nagios to monitor several, if not hundreds of other servers, all performing possibly different tasks. So it makes sense to have a dedicated machine, referred to as the Nagios server, that initiates the checks on all the other servers and collects the data for logging and display on a web page.

On each server there is a Nagios daemon called NRPE, that listens on port 5666 for commands from the Nagios server. If you have installed from a Debian package, then most likely, your NRPE config will exist in /etc/nagios and plugins are installed in /usr/lib/nagios/plugins.

The Perl scripts are fairly easy to understand and you can copy/modify them to suit your needs.

I also use some scripts written by Daniel Lucio Quiroz, you may have already found the link on inside-out.xyz, but I include the link below:
https://inside-out.xyz/technology/monitoring-your-fusionpbx-freeswitch-voip-server-with-nagios.html