AW: [Nagiosplug-help] check_iftraffic 13 out of bounds problem

Masopust Christian christian.masopust at siemens.com
Fri May 13 00:25:16 CEST 2005


hi johny,

funny, i had the same problem this morning when adding a new switch to
nagios   ;-))

the problem is, that you run check_traffic first as root (i asume) and after
that
nagios is not able to open the /tmp/traffic_if... - files.
simply change permissions of /tmp/traffic_if... files or remove them so that
nagios
will recreate them.

best regards,
chris

 

-----Ursprüngliche Nachricht-----
Von: nagiosplug-help-admin at lists.sourceforge.net
[mailto:nagiosplug-help-admin at lists.sourceforge.net] Im Auftrag von Johny
Hazin
Gesendet: Freitag, 13. Mai 2005 02:46
An: nagiosplug-help at lists.sourceforge.net
Betreff: [Nagiosplug-help] check_iftraffic 13 out of bounds problem

Hi list



When i use this command for test the plugin check_iftraffic:



/usr/lib/nagios/plugins/check_iftraffic -H 200.62.42.65 -C public
 -i if_descr -b 256 -u k -w 80 -c 90



the exit looks fine:



Total RX Bytes: 76.98 MB, Total TX Bytes: 35.94 MB <br>Average Traffic:
 5.32 kB/s (16.6%) in, 3.98 kB/s (12.5%) out| inUsage=16.6,80,90
 outUsage=12.5,80,90



But when i put this from Nagios, appears this message in the nagios.log:



Warning: Return code of 13 for check of service 'BandWidth' on host
 'CLIENT' was out of bounds.



The solution of the nagios faq is:



The plugin you're using to perform the host or service check is
 not returning the proper return code when it exits.



My services.cfg file is:



define  service {

        host_name                       CLIENT

        service_description             BandWidth

        is_volatile                     0

        check_command                 check_iftraffic!public!if_decr!256!
k!80!98

        max_check_attempts              5

        normal_check_interval           1

        retry_check_interval            2

        active_checks_enabled           1

        passive_checks_enabled          1

        check_period                    24x7

        parallelize_check               0

        obsess_over_service             1

        check_freshness                 0

        event_handler_enabled           0

        flap_detection_enabled          0

        process_perf_data               1

        retain_status_information       1

        retain_nonstatus_information    1

        contact_groups                  Administrators

        notification_interval           10

        notification_period             24x7

        notification_options            c

        notifications_enabled           0

        register                        1

        }



Any Ideas?...Thanks



Johny 





- Johny Hazin (jhazin)



-----------------------

The mailing list archive is found here:

http://www.nagiosexchange.org/nagiosplug-help.32.0.html

				


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20050513/946ff45f/attachment.html>


More information about the Help mailing list