Fwd: A FreeSWITCH Nagios plugin
Hello everyone, Like others before me, I've looked around for a Nagios plugin to monitor FreeSWITCH, but didn't find anything that met our needs. There were some discussions from years ago on this list (see links below), but no plugins or scripts. http://lists.freeswitch.org/pipermail/freeswitch-users/2010-October/064600.h... http://lists.freeswitch.org/pipermail/freeswitch-users/2010-April/055640.htm... A search for 'freeswitch' on the Nagios Exchange also comes up empty. Since we really needed to use Nagios to monitor our FS servers, I had to build something, which I did in Perl. It uses Ton Voon's excellent Nagios::Plugin Perl module. Admittedly, it's limited in features, but if what you need to be monitored can be gleaned from "fs_cli -x" calls, then this plugin can be easily extended to do it. I'm a complete FreeSWITCH newb, so I may have gone about this entirely the wrong way, so please go easy on me ;-) https://github.com/kjhosein/nagios-freeswitch-plugin I do hope this helps someone out there. Cheers, _Khalid
Awesome, thanks for sharing! That code is really well laid out and easy to read. Proof positive that Perl code need not be ugly and unreadable. -MC On Thu, Aug 22, 2013 at 10:51 AM, Khalid Hosein < khalid.hosein@platform28.com> wrote:
Hello everyone,
Like others before me, I've looked around for a Nagios plugin to monitor FreeSWITCH, but didn't find anything that met our needs. There were some discussions from years ago on this list (see links below), but no plugins or scripts.
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-October/064600.h...
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-April/055640.htm...
A search for 'freeswitch' on the Nagios Exchange also comes up empty.
Since we really needed to use Nagios to monitor our FS servers, I had to build something, which I did in Perl. It uses Ton Voon's excellent Nagios::Plugin Perl module.
Admittedly, it's limited in features, but if what you need to be monitored can be gleaned from "fs_cli -x" calls, then this plugin can be easily extended to do it.
I'm a complete FreeSWITCH newb, so I may have gone about this entirely the wrong way, so please go easy on me ;-)
https://github.com/kjhosein/nagios-freeswitch-plugin
I do hope this helps someone out there. Cheers,
_Khalid
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Its readable? I can fix that!! On Aug 22, 2013, at 5:36 PM, Michael Collins <msc@freeswitch.org> wrote:
Awesome, thanks for sharing! That code is really well laid out and easy to read. Proof positive that Perl code need not be ugly and unreadable.
-MC
On Thu, Aug 22, 2013 at 10:51 AM, Khalid Hosein <khalid.hosein@platform28.com> wrote:
Hello everyone,
Like others before me, I've looked around for a Nagios plugin to monitor FreeSWITCH, but didn't find anything that met our needs. There were some discussions from years ago on this list (see links below), but no plugins or scripts.
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-October/064600.h... http://lists.freeswitch.org/pipermail/freeswitch-users/2010-April/055640.htm...
A search for 'freeswitch' on the Nagios Exchange also comes up empty.
Since we really needed to use Nagios to monitor our FS servers, I had to build something, which I did in Perl. It uses Ton Voon's excellent Nagios::Plugin Perl module.
Admittedly, it's limited in features, but if what you need to be monitored can be gleaned from "fs_cli -x" calls, then this plugin can be easily extended to do it.
I'm a complete FreeSWITCH newb, so I may have gone about this entirely the wrong way, so please go easy on me ;-)
https://github.com/kjhosein/nagios-freeswitch-plugin
I do hope this helps someone out there. Cheers,
_Khalid
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Some monitoring can also be gathered from mod_snmp (contributed by pressureman). It registers with snmpd via AgentX and would let you remotely query FS via SNMP. It's limited in the information available (it does have at least calls/channels and basic status though). Any patches to add more would I'm sure be welcome. On Thursday, August 22, 2013, Khalid Hosein wrote:
Hello everyone,
Like others before me, I've looked around for a Nagios plugin to monitor FreeSWITCH, but didn't find anything that met our needs. There were some discussions from years ago on this list (see links below), but no plugins or scripts.
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-October/064600.h...
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-April/055640.htm...
A search for 'freeswitch' on the Nagios Exchange also comes up empty.
Since we really needed to use Nagios to monitor our FS servers, I had to build something, which I did in Perl. It uses Ton Voon's excellent Nagios::Plugin Perl module.
Admittedly, it's limited in features, but if what you need to be monitored can be gleaned from "fs_cli -x" calls, then this plugin can be easily extended to do it.
I'm a complete FreeSWITCH newb, so I may have gone about this entirely the wrong way, so please go easy on me ;-)
https://github.com/kjhosein/nagios-freeswitch-plugin
I do hope this helps someone out there. Cheers,
_Khalid
Thank you for sharing. I am currently working on similar check with Nagios using Bash. But this looks good and has the options ready for me to just add additional commands that I want to check on FS. Henry On Thu, Aug 22, 2013 at 10:51 AM, Khalid Hosein < khalid.hosein@platform28.com> wrote:
Hello everyone,
Like others before me, I've looked around for a Nagios plugin to monitor FreeSWITCH, but didn't find anything that met our needs. There were some discussions from years ago on this list (see links below), but no plugins or scripts.
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-October/064600.h...
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-April/055640.htm...
A search for 'freeswitch' on the Nagios Exchange also comes up empty.
Since we really needed to use Nagios to monitor our FS servers, I had to build something, which I did in Perl. It uses Ton Voon's excellent Nagios::Plugin Perl module.
Admittedly, it's limited in features, but if what you need to be monitored can be gleaned from "fs_cli -x" calls, then this plugin can be easily extended to do it.
I'm a complete FreeSWITCH newb, so I may have gone about this entirely the wrong way, so please go easy on me ;-)
https://github.com/kjhosein/nagios-freeswitch-plugin
I do hope this helps someone out there. Cheers,
_Khalid
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I did do some similar work with opsview but it should work with Nagios as it's built on it anyway. http://freeswitch-users.2379917.n2.nabble.com/Freeswitch-amp-Opsview-Monitor... Work well for me as the only real state I needed was the concurrent call rate so we could compare it to the system resources and see how it was performing with our call campaigns. Seems to be running happily presently at 220 concurrent calls for only a 2x CPU & 16Gb Virtual Server *Alex Ynema** *| IT Consultant alex@opensystems.net.au Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au On 23 August 2013 08:04, Henry Huang <red.rain.seven@gmail.com> wrote:
Thank you for sharing. I am currently working on similar check with Nagios using Bash. But this looks good and has the options ready for me to just add additional commands that I want to check on FS.
Henry
On Thu, Aug 22, 2013 at 10:51 AM, Khalid Hosein < khalid.hosein@platform28.com> wrote:
Hello everyone,
Like others before me, I've looked around for a Nagios plugin to monitor FreeSWITCH, but didn't find anything that met our needs. There were some discussions from years ago on this list (see links below), but no plugins or scripts.
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-October/064600.h...
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-April/055640.htm...
A search for 'freeswitch' on the Nagios Exchange also comes up empty.
Since we really needed to use Nagios to monitor our FS servers, I had to build something, which I did in Perl. It uses Ton Voon's excellent Nagios::Plugin Perl module.
Admittedly, it's limited in features, but if what you need to be monitored can be gleaned from "fs_cli -x" calls, then this plugin can be easily extended to do it.
I'm a complete FreeSWITCH newb, so I may have gone about this entirely the wrong way, so please go easy on me ;-)
https://github.com/kjhosein/nagios-freeswitch-plugin
I do hope this helps someone out there. Cheers,
_Khalid
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (6)
-
Alex Ynema
-
Henry Huang
-
Khalid Hosein
-
Michael Collins
-
Michael Jerris
-
Steven Ayre