[Nagiosplug-devel] [ nagiosplug-Feature Requests-1201126 ] check_iftraffic code 13 out of bounds

SourceForge.net noreply at sourceforge.net
Thu May 12 20:51:44 CEST 2005


Feature Requests item #1201126, was opened at 2005-05-13 03:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=1201126&group_id=29880

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: jhazin (jhazin)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_iftraffic code 13 out of bounds

Initial Comment:
Hi

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 services configuration
file, 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 







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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=1201126&group_id=29880




More information about the Devel mailing list