Page 1 of 3
Bandwith Check on a switch - Return code of 13 is out of bo
Posted: Tue Mar 01, 2016 2:16 pm
by fodorm
I setup a Cisco switch to be monitored using the wizard and am getting this error on the bandwidth check: Return code of 13 is out of bounds. Status is working fine but not bandwidth. We are running Nagios XI 2014R2.6. I would appreciate any direction in solving the issue. Thanks.
Re: Bandwith Check on a switch - Return code of 13 is out of
Posted: Tue Mar 01, 2016 5:15 pm
by tgriep
Lets see if the wizard created the bandwidth configuration and created the files for the bandwidth check.
Login as root on the XI server, run the following and post the output.
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ls -l /var/lib/mrtg
In the /var/lib/mrtg folder, is there a file with the IP address of your device you are checking in that directory?
Can you post one of the Service checks that is causing the error?
Thanks.
Re: Bandwith Check on a switch - Return code of 13 is out of
Posted: Wed Mar 02, 2016 11:53 am
by fodorm
here is the output and this is the IP of the device:
[root@horcrux2 PROD S:D tmp]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
[root@horcrux2 PROD S:D tmp]# ls -l /var/lib/mrtg
total 6968
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10101.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10102.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10103.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10104.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10105.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10106.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10107.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10108.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10109.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10110.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10111.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10112.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10113.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10114.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10115.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10117.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10118.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10119.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10120.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10121.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10122.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10123.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10124.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10134.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10135.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10136.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10137.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10138.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10139.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10140.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10141.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10142.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10143.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10144.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10145.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10146.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10147.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_10148.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_2000.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_5032.rrd
-rw-r--r-- 1 root root 105312 Mar 2 11:40 172.20.0.14_5179.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_101191680.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16777216.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16781312.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16785408.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16789504.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16793600.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16797696.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16801792.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16805888.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16809984.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16814080.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16818176.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16822272.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16826368.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16830464.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16834560.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16838656.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16842752.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16846848.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16850944.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16855040.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16859136.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16863232.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16867328.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_16871424.rrd
-rw-r--r-- 1 root root 105312 Mar 1 11:30 172.20.64.33_83886080.rrd
-rw-r--r--. 1 root root 0 Mar 2 11:40 mrtg.ok
Re: Bandwith Check on a switch - Return code of 13 is out of
Posted: Wed Mar 02, 2016 1:26 pm
by tgriep
Are you getting this error on all of the bandwidth checks for that switch or just one of them?
If it is just the one port giving you issues, try deleting this rrd file and wait 20 minutes to see if it gets recreated correctly and the error is gone.
Code: Select all
rm /var/lib/mrtg/172.20.0.14_10101.rrd
In the XI GUI, can you go to Admin > Manage Config Wizards and update the Network Switch / Router wizard to the latest version and see if that helps.
Re: Bandwith Check on a switch - Return code of 13 is out of
Posted: Wed Mar 02, 2016 1:32 pm
by fodorm
I updated the wizard yesterday after reading another post and rebuilt the check. It solved an issue where the ports could not be found. The error is happening on all the ports of this switch.
Re: Bandwith Check on a switch - Return code of 13 is out of
Posted: Wed Mar 02, 2016 4:42 pm
by tgriep
Can you post the following files so we can see them?
Code: Select all
/var/lib/mrtg/172.20.0.14_10101.rrd
/etc/mrtg/conf.d/172.20.0.14.cfg
What is the make and model number of the Cisco Switch and the version of IOS is it running?
Re: Bandwith Check on a switch - Return code of 13 is out of
Posted: Thu Mar 03, 2016 9:36 am
by fodorm
The switch is a 3750g and is running Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 12.2(37)SE1, RELEASE SOFTWARE (fc1)
Re: Bandwith Check on a switch - Return code of 13 is out of
Posted: Thu Mar 03, 2016 11:54 am
by tgriep
I looked at the rrd file and it looks to have valid data. Also, it just started to capture data from that switch around 12pm 3/2/2016 CST.
Are you still getting the error in XI?
Can you login to the XI server as root and run the following commands and post the output?
Code: Select all
/usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/172.20.0.14_10101.rrd -w 500,500 -c 800,800 -l M
/usr/local/nagios/libexec/check_rrdtraf --help
Re: Bandwith Check on a switch - Return code of 13 is out of
Posted: Thu Mar 03, 2016 12:11 pm
by fodorm
Ran:/usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/172.20.0.14_10101.rrd -w 500,500 -c 800,800 -l M
Output: bash: /usr/local/nagios/libexec/check_rrdtraf: Permission denied
Ran: /usr/local/nagios/libexec/check_rrdtraf --help
Output: bash: /usr/local/nagios/libexec/check_rrdtraf: Permission denied
Re: Bandwith Check on a switch - Return code of 13 is out of
Posted: Thu Mar 03, 2016 3:35 pm
by rkennedy
fodorm wrote:Ran:/usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/172.20.0.14_10101.rrd -w 500,500 -c 800,800 -l M
Output: bash: /usr/local/nagios/libexec/check_rrdtraf: Permission denied
Ran: /usr/local/nagios/libexec/check_rrdtraf --help
Output: bash: /usr/local/nagios/libexec/check_rrdtraf: Permission denied
Can you run the commands as the root user as @tgriep mentioned?