Bandwith Check on a switch - Return code of 13 is out of bo
Bandwith Check on a switch - Return code of 13 is out of bo
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
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.
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.
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/mrtgCan you post one of the Service checks that is causing the error?
Thanks.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bandwith Check on a switch - Return code of 13 is out of
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
[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
You do not have the required permissions to view the files attached to this post.
Re: Bandwith Check on a switch - Return code of 13 is out of
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.
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.
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.rrdBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bandwith Check on a switch - Return code of 13 is out of
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
Can you post the following files so we can see them?
What is the make and model number of the Cisco Switch and the version of IOS is it running?
Code: Select all
/var/lib/mrtg/172.20.0.14_10101.rrd
/etc/mrtg/conf.d/172.20.0.14.cfgBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bandwith Check on a switch - Return code of 13 is out of
The switch is a 3750g and is running Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 12.2(37)SE1, RELEASE SOFTWARE (fc1)
You do not have the required permissions to view the files attached to this post.
Re: Bandwith Check on a switch - Return code of 13 is out of
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?
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 --helpBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bandwith Check on a switch - Return code of 13 is out of
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
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
Can you run the commands as the root user as @tgriep mentioned?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
Former Nagios Employee