Re: [PHP] Nagios Monitoring

2009-04-14 Thread לירן כהן
Normally, I would write the plugin in perl but the general rule is to return the right exit code to nagios, meaning, the plugin performs a test and exits with a code from 0-3 which indicates to nagios of the result of the test, it is also possible to also return a test message along wit hthe co

Re: [PHP] Nagios Monitoring

2009-04-13 Thread Yannick Mortier
2009/4/13 Waynn Lue : > Hey guys, > > I'm looking to write a nagios plugin that essentially monitors whether or > not a database query returns a value > 0 at any given point.  I was hoping > to write this in PHP, but I haven't found too many examples of Nagios > plugins in PHP ( > http://www.barryo