> -----Original Message----- > From: Wolfe, Robert [mailto:[email protected]] > Sent: Thursday, 4 February 2010 01:52 > > Hi all! > > I am wanting to write a plugin that will tell Asterisk to make a test > call every so often and then report back to Nagios if a call was > successful or not. The caveat here is that Asterisk is on one server > and Nagios is on its own dedicated server. > > If anyone knows of any script or plugin that can do this, I would > greately appreciate any pointers in the right direction.
Use NRPE (active) or NSCA (passive) for the check result submission. Write your test routine, house it on your remote server. For NRPE, use 'check_nrpe -H <asteriskhost> -c <commandname>'. Have the NRPE daemon listen on your asterisk box with the '<commandname>' defined in the 'nrpe.cfg' file. For NSCA, the NSCA daemon listens on your Nagios server, and a cron-job runs your check and submits the results. See http://nagios.sourceforge.net/docs/3_0/addons.html for a better description and more documentation the check submission methods. Stuart ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
