<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.24">
<TITLE>AW: [Nagiosplug-help] check_iftraffic 13 out of bounds problem</TITLE>
</HEAD>
<BODY>
<BR>
<P><FONT SIZE=2>hi johny,</FONT>
</P>
<P><FONT SIZE=2>funny, i had the same problem this morning when adding a new switch to nagios ;-))</FONT>
</P>
<P><FONT SIZE=2>the problem is, that you run check_traffic first as root (i asume) and after that</FONT>
<BR><FONT SIZE=2>nagios is not able to open the /tmp/traffic_if... - files.</FONT>
<BR><FONT SIZE=2>simply change permissions of /tmp/traffic_if... files or remove them so that nagios</FONT>
<BR><FONT SIZE=2>will recreate them.</FONT>
</P>
<P><FONT SIZE=2>best regards,</FONT>
<BR><FONT SIZE=2>chris</FONT>
</P>
<P><FONT SIZE=2> </FONT>
</P>
<P><FONT SIZE=2>-----Ursprüngliche Nachricht-----</FONT>
<BR><FONT SIZE=2>Von: nagiosplug-help-admin@lists.sourceforge.net [<A HREF="mailto:nagiosplug-help-admin@lists.sourceforge.net">mailto:nagiosplug-help-admin@lists.sourceforge.net</A>] Im Auftrag von Johny Hazin</FONT></P>
<P><FONT SIZE=2>Gesendet: Freitag, 13. Mai 2005 02:46</FONT>
<BR><FONT SIZE=2>An: nagiosplug-help@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>Betreff: [Nagiosplug-help] check_iftraffic 13 out of bounds problem</FONT>
</P>
<P><FONT SIZE=2>Hi list</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>When i use this command for test the plugin check_iftraffic:</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>/usr/lib/nagios/plugins/check_iftraffic -H 200.62.42.65 -C public</FONT>
<BR><FONT SIZE=2> -i if_descr -b 256 -u k -w 80 -c 90</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>the exit looks fine:</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>Total RX Bytes: 76.98 MB, Total TX Bytes: 35.94 MB <br>Average Traffic:</FONT>
<BR><FONT SIZE=2> 5.32 kB/s (16.6%) in, 3.98 kB/s (12.5%) out| inUsage=16.6,80,90</FONT>
<BR><FONT SIZE=2> outUsage=12.5,80,90</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>But when i put this from Nagios, appears this message in the nagios.log:</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>Warning: Return code of 13 for check of service 'BandWidth' on host</FONT>
<BR><FONT SIZE=2> 'CLIENT' was out of bounds.</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>The solution of the nagios faq is:</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>The plugin you're using to perform the host or service check is</FONT>
<BR><FONT SIZE=2> not returning the proper return code when it exits.</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>My services.cfg file is:</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>define service {</FONT>
</P>
<P><FONT SIZE=2> host_name CLIENT</FONT>
</P>
<P><FONT SIZE=2> service_description BandWidth</FONT>
</P>
<P><FONT SIZE=2> is_volatile 0</FONT>
</P>
<P><FONT SIZE=2> check_command check_iftraffic!public!if_decr!256!</FONT>
<BR><FONT SIZE=2>k!80!98</FONT>
</P>
<P><FONT SIZE=2> max_check_attempts 5</FONT>
</P>
<P><FONT SIZE=2> normal_check_interval 1</FONT>
</P>
<P><FONT SIZE=2> retry_check_interval 2</FONT>
</P>
<P><FONT SIZE=2> active_checks_enabled 1</FONT>
</P>
<P><FONT SIZE=2> passive_checks_enabled 1</FONT>
</P>
<P><FONT SIZE=2> check_period 24x7</FONT>
</P>
<P><FONT SIZE=2> parallelize_check 0</FONT>
</P>
<P><FONT SIZE=2> obsess_over_service 1</FONT>
</P>
<P><FONT SIZE=2> check_freshness 0</FONT>
</P>
<P><FONT SIZE=2> event_handler_enabled 0</FONT>
</P>
<P><FONT SIZE=2> flap_detection_enabled 0</FONT>
</P>
<P><FONT SIZE=2> process_perf_data 1</FONT>
</P>
<P><FONT SIZE=2> retain_status_information 1</FONT>
</P>
<P><FONT SIZE=2> retain_nonstatus_information 1</FONT>
</P>
<P><FONT SIZE=2> contact_groups Administrators</FONT>
</P>
<P><FONT SIZE=2> notification_interval 10</FONT>
</P>
<P><FONT SIZE=2> notification_period 24x7</FONT>
</P>
<P><FONT SIZE=2> notification_options c</FONT>
</P>
<P><FONT SIZE=2> notifications_enabled 0</FONT>
</P>
<P><FONT SIZE=2> register 1</FONT>
</P>
<P><FONT SIZE=2> }</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>Any Ideas?...Thanks</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>Johny </FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=2>- Johny Hazin (jhazin)</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>-----------------------</FONT>
</P>
<P><FONT SIZE=2>The mailing list archive is found here:</FONT>
</P>
<P><FONT SIZE=2><A HREF="http://www.nagiosexchange.org/nagiosplug-help.32.0.html" TARGET="_blank">http://www.nagiosexchange.org/nagiosplug-help.32.0.html</A></FONT>
</P>
<P>
</P>
<BR>
<P><FONT SIZE=2>-------------------------------------------------------</FONT>
<BR><FONT SIZE=2>This SF.Net email is sponsored by Oracle Space Sweepstakes</FONT>
<BR><FONT SIZE=2>Want to be the first software developer in space?</FONT>
<BR><FONT SIZE=2>Enter now for the Oracle Space Sweepstakes!</FONT>
<BR><FONT SIZE=2><A HREF="http://ads.osdn.com/?ad_ids93&alloc_id" TARGET="_blank">http://ads.osdn.com/?ad_ids93&alloc_id</A>281&op=click</FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Nagiosplug-help mailing list</FONT>
<BR><FONT SIZE=2>Nagiosplug-help@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2><A HREF="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</A></FONT>
<BR><FONT SIZE=2>::: Please include plugins version (-v) and OS when reporting any issue. </FONT>
<BR><FONT SIZE=2>::: Messages without supporting info will risk being sent to /dev/null</FONT>
</P>
</BODY>
</HTML>