Re: Nagios Monitoring

From: Date: Tue, 14 Apr 2009 12:54:37 +0000
Subject: Re: Nagios Monitoring
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-291472@lists.php.net to get a copy of this message
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


« previous php.general (#291472) next »