I am using the snmp commands. The following are a coupld of examples:<br>
<br>
check_snmp_ntpstat -H $HOSTNAME$ -C COMMUNITY_NAME<br>
check_snmp_disk -H $HOSTNAME$ -C COMMUNITY_NAME<br>
<br>
I have seen the faqs mentioned by you and it says the same thing as
mentioned by you. But interestingly, error "Return code of 142" started
to show up from version 3.x. I did not find that in any previous
versions.<br>
<br>
Regards,<br><br><div class="gmail_quote">On Thu, Jun 18, 2009 at 8:24 PM, Mat W <span dir="ltr"><<a href="mailto:lmw94002@hotmail.com">lmw94002@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
there's the FAQ... <a href="http://www.nagios.org/faqs/viewfaq.php?faq_id=17" target="_blank">http://www.nagios.org/faqs/viewfaq.php?faq_id=17</a><br>
 <br>
I think this can also happen when some checks returns -no- value, or return a string when expecting an integer, etc.  essentially encountering something the plugin isn't expecting which could be leading to "bad exit" from the script.<br>
<br>
Can you recreate this from the command line?<br>
<br>-- <br>Mat W. - <a href="http://www.techadre.com/" target="_blank">http://www.techadre.com</a><br><br><br> <br>
<hr>
Date: Thu, 18 Jun 2009 10:38:18 +0530<br>From: <a href="mailto:victory17@gmail.com" target="_blank">victory17@gmail.com</a><div class="im"><br>To: <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
</div>Subject: [Nagios-users] Return code of 142 is out of bounds<div><div></div><div class="h5"><br><br>Hi All,<br><br>I am running Nagios 3.0.2 on FC5 server.<br><br>I have been encountering this strange error intermittently on a few checks.<br>
<br>(Return code of 142 is out of bounds)<br><br>I am using the nagios with snmp (net-snmp-5.2 & net-snmp-5.3) on a few servers.<br><br>This normally happens with snmp-load checks or snmp-disk checks.<br><br>I could not find anything related to this problem over the internet. Hoping to get a solution to this problem here.<br>
<br>Regards,<br><br><br></div></div><hr>Windows Live™: Keep your life in sync. <a href="http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009" target="_blank">Check it out.</a></div>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Gagan Brahmi<br>(SKY)<br>+919860091019<br><br>(¨`·.·´¨) Always<br>`·.¸(¨`·.·´¨) Keep<br>(¨`·.·´¨)¸.·´ Smiling!<br>  `·.¸.·´<br>