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 code.
for a more information you may look here:

http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN78
Liran Cohen
CEO
+972-54-5617070
בניית אתרים <http://www.rct.co.il>
מוצרי פרסום <http://www.icon-a.com>


ציטוט 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.barryodonovan.com/index.php/2007/11/02/asterisk-pri-nagios is the
best one I've found so far).  Just wondering if anyone has any experience
writing them?

Waynn



Reply via email to