Page 1 of 1

Cisco Monitoring – Bandwidth services returns failure errors

Posted: Fri Feb 24, 2012 10:31 am
by jglass
Hello,

I used the Network Switch / Router monitoring wizard to setup services for measuring bandwidth on my Cisco ASA (the ping service is working). I have several services configured to capture bandwidth from the ASA's various interfaces. The error I show is: (Return code of 126 is out of bounds - plugin may not be executable)

I need some assistance with getting this to work. Here are some of my configuration parameters for the service.

Here is the Command View of the service for one of my ASA interfaces:
$USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$

$ARG1$ = 172.17.1.1_2.rrd
$ARG2$ = 25,25
$ARG3$ = 50,50
$ARG4$ = M

Additional Templates:
xiwizard_switch_port_bandwidth_service
(command view and ARG fields are all blank)

Service Template xiwizard_switch_port_bandwidth_service uses Additional Template:
xiwizard_generic_service
Command View: $USER1$/check_dummy 0 "Nothing to monitor"
No ARG are defined.

I’ve verified that net-snmp-utils, net-snmp, and net-snmp-libs are present on my O/S Cent 6.2. The SnapShot manager showed an error after I ran the wizard. This file didn’t help me any though, it basically said - One or more problems was encountered while running the pre-flight check...Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. – But I didn’t upgrade. The SnapShot files that follow the one that reported this problem all show clean, with no errors to indicate why the snmp services aren’t working.

Kindly let me know if you can help!

Thanks,
Jason

Re: Cisco Monitoring – Bandwidth services returns failure er

Posted: Fri Feb 24, 2012 12:48 pm
by scottwilkerson
We need to check permissions on the plugin

Code: Select all

ls -l /usr/local/nagios/libexec/check_rrdtraf

Re: Cisco Monitoring – Bandwidth services returns failure er

Posted: Fri Feb 24, 2012 2:16 pm
by jglass
Hello again, Scott.

Here's the permissions for that plugin: -rw-r--r--. 1 root root 9232

Thanks,
Jason

Re: Cisco Monitoring – Bandwidth services returns failure er

Posted: Fri Feb 24, 2012 2:18 pm
by scottwilkerson

Code: Select all

chmod +x /usr/local/nagios/libexec/check_rrdtraf
should do the trick.

Re: Cisco Monitoring – Bandwidth services returns failure er

Posted: Fri Feb 24, 2012 2:58 pm
by jglass
Once I added that permission, 1/4 interfaces started collecting data. Thanks!

Now, I guess I need to compare the settings of the working service with those that are not.

Thanks,
Jason

Re: Cisco Monitoring – Bandwidth services returns failure er

Posted: Fri Feb 24, 2012 3:50 pm
by scottwilkerson
All of the plugins in /usr/local/nagios/libexec that you use will need to be executable by the nagios user.

Hopefully the other 3/4 won't be too difficult