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:
Liran Cohen
בניית אתרים <>
מוצרי פרסום <>

ציטוט 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 ( is the
best one I've found so far).  Just wondering if anyone has any experience
writing them?


Reply via email to