<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
You can write your own plugin (in almost any language) to check for those conditions and return the proper error code and text string. It's easy! <div><br></div><div>#!/bin/ksh</div><div><br></div><div>< insert your code to check conditions and set the performance_counter variable here ></div><div><br></div><div>if [[ $performance_counter -eq 2 ]]; then</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>print "System OK"</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>exit 0</div><div>fi</div><div>if [[ $performance_counter -eq 0 ]]; then</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>print "System critical"</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>exit 2</div><div>fi<br><div><br></div><div>good luck</div><div><br></div><div>kyle</div><div><br><div>On Jul 31, 2008, at 1:02 AM, Saiprasad Sanzgiri wrote:<br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt"><div>Dear Team,</div> <div> </div> <div>I have a specific requirement from my customer, wherein there is a service which states that if the performance counter value is 2 then the service is running fine and if it reaches 0, then there is a failure of the service.</div> <div> </div> <div>As per Nagios, the Critical threshold should be always higher then the Warning threshold, hence in this case it is reverse.</div> <div> </div> <div>Can we have any plugin or any command which can monitor such a behaviour in Nagios.</div> <div> </div> <div>Please confirm on priority.</div> <div> </div> <div>Thanks & Regads,</div> <div>Saiprasad Sanzgiri</div> <div> </div></div><br> <!--1--><hr size="1"> Connect with friends all over the world. <a href="http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.com/?wm=n/"> Get Yahoo! India Messenger.</a><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-------------------------------------------------------------------------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This SF.Net email is sponsored by the Moblin Your Move Developer's challenge</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Build the coolest Linux based applications with Moblin SDK & win great prizes</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Grand prize is a trip for two to an Open Source event anywhere in the world</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________">http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Nagiosplug-help mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">::: Please include plugins version (-v) and OS when reporting any issue.<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">::: Messages without supporting info will risk being sent to /dev/null</div> </blockquote></div><br></div></div></body></html>