Capacity Planning Graphs - values not JSON compliant
Re: Capacity Planning Graphs - values not JSON compliant
I've followed all the instructions on the link. I do get this error
192.168.21.4_149.rrd 192.168.45.2_12.rrd 192.168.7.6_4.rrd
192.168.21.4_14.rrd 192.168.45.2_13.rrd 192.168.7.6_5.rrd
192.168.21.4_153.rrd 192.168.45.2_14.rrd 192.168.7.6_6.rrd
192.168.21.4_157.rrd 192.168.45.2_15.rrd mrtg.ok
[root@localhost mrtg]# ./check_rrdtraf -f '/var/lib/mrtg/192.168.7.6_4.rrd' -w 1 -c 2
-bash: ./check_rrdtraf: No such file or directory
[root@localhost mrtg]#
I also did not have this directory and created it: mkdir /var/lock/mrtg
I deleted unused IP addresses as instructed from
I am applying the fix now from section ICMP and Ping Checks Stopped Graphing After XI 2014 Upgrade . - Missed it the first time executing ./fix_ds_quantity.sh -i -d /usr/local/nagios/share/perfdata/
192.168.21.4_149.rrd 192.168.45.2_12.rrd 192.168.7.6_4.rrd
192.168.21.4_14.rrd 192.168.45.2_13.rrd 192.168.7.6_5.rrd
192.168.21.4_153.rrd 192.168.45.2_14.rrd 192.168.7.6_6.rrd
192.168.21.4_157.rrd 192.168.45.2_15.rrd mrtg.ok
[root@localhost mrtg]# ./check_rrdtraf -f '/var/lib/mrtg/192.168.7.6_4.rrd' -w 1 -c 2
-bash: ./check_rrdtraf: No such file or directory
[root@localhost mrtg]#
I also did not have this directory and created it: mkdir /var/lock/mrtg
I deleted unused IP addresses as instructed from
I am applying the fix now from section ICMP and Ping Checks Stopped Graphing After XI 2014 Upgrade . - Missed it the first time executing ./fix_ds_quantity.sh -i -d /usr/local/nagios/share/perfdata/
Re: Capacity Planning Graphs - values not JSON compliant
Let us know of the result. This should fix any rrds with datasource quantity mismatches.FLCUISIT wrote:I am applying the fix now from section ICMP and Ping Checks Stopped Graphing After XI 2014 Upgrade . - Missed it the first time executing ./fix_ds_quantity.sh -i -d /usr/local/nagios/share/perfdata/
Also:
This command must be run from the plugins (libexec) folder:FLCUISIT wrote:[root@localhost mrtg]# ./check_rrdtraf -f '/var/lib/mrtg/192.168.7.6_4.rrd' -w 1 -c 2
-bash: ./check_rrdtraf: No such file or directory
Code: Select all
/usr/local/nagios/libexec/check_rrdtraf -f '/var/lib/mrtg/192.168.7.6_4.rrd' -w 1 -c 2Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Capacity Planning Graphs - values not JSON compliant
The fix corrected some of the graphs and more now show data collected since yesterday - However many more still do not show data. Appears to be the older monitors configured (in previous versions) and most windows hosts.
Checking the rrd folder /var/lib/mrtg/ only displays files with IP addresses like switches and routers. Running the check command /usr/local/nagios/libexec/check_rrdtraf -f '/var/lib/mrtg/<servername>.rrd' -w 1 -c 2 returns file does not exist. See attached - Ajax is a switch
Checking the rrd folder /var/lib/mrtg/ only displays files with IP addresses like switches and routers. Running the check command /usr/local/nagios/libexec/check_rrdtraf -f '/var/lib/mrtg/<servername>.rrd' -w 1 -c 2 returns file does not exist. See attached - Ajax is a switch
You do not have the required permissions to view the files attached to this post.
Re: Capacity Planning Graphs - values not JSON compliant
These rrd files are found in the folder but return no values and do not display any data in the capacity graphs
Code: Select all
[root@localhost mrtg]# /usr/local/nagios/libexec/check_rrdtraf -f '/var/lib/mrtg/192.168.5.4_10.rrd' -w 1 -c 2
OK - Current BW in: 0bps Out: 0bps|in=0b/s;1;2 out=0b/s;1;2
[root@localhost mrtg]# /usr/local/nagios/libexec/check_rrdtraf -f '/var/lib/mrtg/192.168.5.4_11.rrd' -w 1 -c 2
OK - Current BW in: 0bps Out: 0bps|in=0b/s;1;2 out=0b/s;1;2
[root@localhost mrtg]# /usr/local/nagios/libexec/check_rrdtraf -f '/var/lib/mrtg/192.168.5.4_12.rrd' -w 1 -c 2
OK - Current BW in: 0bps Out: 0bps|in=0b/s;1;2 out=0b/s;1;2
[root@localhost mrtg]# /usr/local/nagios/libexec/check_rrdtraf -f '/var/lib/mrtg/192.168.5.4_13.rrd' -w 1 -c 2
OK - Current BW in: 0bps Out: 0bps|in=0b/s;1;2 out=0b/s;1;2
[root@localhost mrtg]# /usr/local/nagios/libexec/check_rrdtraf -f '/var/lib/mrtg/192.168.5.4_14.rrd' -w 1 -c 2
OK - Current BW in: 0bps Out: 0bps|in=0b/s;1;2 out=0b/s;1;2
[root@localhost mrtg]# /usr/local/nagios/libexec/check_rrdtraf -f '/var/lib/mrtg/192.168.5.4_15.rrd' -w 1 -c 2
Last edited by FLCUISIT on Thu Mar 19, 2015 3:12 pm, edited 1 time in total.
Re: Capacity Planning Graphs - values not JSON compliant
From the support page: http://support.nagios.com/wiki/index.ph ... _Displayed
•Make sure none of the mrtg.cfg entries are using SNMP v2c. Older verions of the Switch Wizard called mrtg with arguments for SNMPv2c, which MRTG does not use. Open up /etc/mrtg/mrtg.cfg and look for
Target[www.hostaddress.com]: 1:[email protected]:::::1
Notice that after the multitude of colons, there is a 1, this represents the SNMP version MRTG will use to poll the device. If this is instead 2c, change it to 2 and save the file. This will need to be done to every metric that is affected by being created with 2c.
I have the following in my file
I do not have Target[www.hostaddress.com]: 1:[email protected]:::::1 in this file. But in each of the *.cfg files in the /conf.d/ sub folder there appears to be that line. Once again not all of my hosts are listed in the conf.d subfolder. Only the routers in the conf.d subfolder have the ::::::2 value at the end all of the switch IP .cfg files have no value
[root@localhost conf.d]# grep -i 'target' 192.168.3.4.cfg
Target[192.168.3.4_1]: 1:[email protected]:
Target[192.168.3.4_2]: 2:[email protected]:
Target[192.168.3.4_3]: 3:[email protected]:
Target[192.168.3.4_4]: 4:[email protected]:
# Target[192.168.3.4_5]: 5:[email protected]:
Target[192.168.3.4_6]: 6:[email protected]:
# Target[192.168.3.4_7]: 7:[email protected]:
Target[192.168.3.4_8]: 8:[email protected]:
Target[192.168.3.4_9]: 9:[email protected]:
Target[192.168.3.4_10]: 10:[email protected]:
Target[192.168.3.4_11]: 11:[email protected]:
Target[192.168.3.4_12]: 12:[email protected]:
Target[192.168.3.4_13]: 13:[email protected]:
# Target[192.168.3.4_14]: 14:[email protected]:
Target[192.168.3.4_15]: 15:[email protected]:
Target[192.168.3.4_16]: 16:[email protected]:
Target[192.168.3.4_17]: 17:[email protected]:
Target[192.168.3.4_18]: 18:[email protected]:
Target[192.168.3.4_19]: 19:[email protected]:
Target[192.168.3.4_20]: 20:[email protected]:
Target[192.168.3.4_21]: 21:[email protected]:
Target[192.168.3.4_22]: 22:[email protected]:
Target[192.168.3.4_23]: 23:[email protected]:
# Target[192.168.3.4_24]: 24:[email protected]:
# Target[192.168.3.4_25]: 25:[email protected]:
Target[192.168.3.4_26]: 26:[email protected]:
Target[192.168.3.4_27]: 27:[email protected]:
Target[192.168.3.4_28]: 28:[email protected]:
However, when I use the current wizard for switch and router it defaults to SNMPv2c - Is it possible that these older configuration used an invalid SNMP string and my mrtg data has not been collecting for some time?
•Make sure none of the mrtg.cfg entries are using SNMP v2c. Older verions of the Switch Wizard called mrtg with arguments for SNMPv2c, which MRTG does not use. Open up /etc/mrtg/mrtg.cfg and look for
Target[www.hostaddress.com]: 1:[email protected]:::::1
Notice that after the multitude of colons, there is a 1, this represents the SNMP version MRTG will use to poll the device. If this is instead 2c, change it to 2 and save the file. This will need to be done to every metric that is affected by being created with 2c.
I have the following in my file
Code: Select all
[root@localhost mrtg]# cat mrtg.cfg
######################################################################
# Multi Router Traffic Grapher -- Example Configuration File
######################################################################
# This file is for use with mrtg-2.0
#
# Note:
#
# * Keywords must start at the begin of a line.
#
# * Lines which follow a keyword line which do start
# with a blank are appended to the keyword line
#
# * Empty Lines are ignored
#
# * Lines starting with a # sign are comments.
# Where should the logfiles, and webpages be created?
# Minimal mrtg.cfg
#--------------------
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg
Include: conf.d/*.cfg
Forks: 4
[root@localhost conf.d]# grep -i 'target' 192.168.3.4.cfg
Target[192.168.3.4_1]: 1:[email protected]:
Target[192.168.3.4_2]: 2:[email protected]:
Target[192.168.3.4_3]: 3:[email protected]:
Target[192.168.3.4_4]: 4:[email protected]:
# Target[192.168.3.4_5]: 5:[email protected]:
Target[192.168.3.4_6]: 6:[email protected]:
# Target[192.168.3.4_7]: 7:[email protected]:
Target[192.168.3.4_8]: 8:[email protected]:
Target[192.168.3.4_9]: 9:[email protected]:
Target[192.168.3.4_10]: 10:[email protected]:
Target[192.168.3.4_11]: 11:[email protected]:
Target[192.168.3.4_12]: 12:[email protected]:
Target[192.168.3.4_13]: 13:[email protected]:
# Target[192.168.3.4_14]: 14:[email protected]:
Target[192.168.3.4_15]: 15:[email protected]:
Target[192.168.3.4_16]: 16:[email protected]:
Target[192.168.3.4_17]: 17:[email protected]:
Target[192.168.3.4_18]: 18:[email protected]:
Target[192.168.3.4_19]: 19:[email protected]:
Target[192.168.3.4_20]: 20:[email protected]:
Target[192.168.3.4_21]: 21:[email protected]:
Target[192.168.3.4_22]: 22:[email protected]:
Target[192.168.3.4_23]: 23:[email protected]:
# Target[192.168.3.4_24]: 24:[email protected]:
# Target[192.168.3.4_25]: 25:[email protected]:
Target[192.168.3.4_26]: 26:[email protected]:
Target[192.168.3.4_27]: 27:[email protected]:
Target[192.168.3.4_28]: 28:[email protected]:
However, when I use the current wizard for switch and router it defaults to SNMPv2c - Is it possible that these older configuration used an invalid SNMP string and my mrtg data has not been collecting for some time?
Re: Capacity Planning Graphs - values not JSON compliant
I deleted one of my switch monitors and recreated it with the wizard yesterday afternoon. The capacity planning graphs display a blank panel with no error or message now - Performance graphs are displaying
You do not have the required permissions to view the files attached to this post.
Re: Capacity Planning Graphs - values not JSON compliant
Did you also remove the old configs and mrtgscans from "/usr/local/nagiosxi/tmp" folder? Did you test the mrtg config for errors?I deleted one of my switch monitors and recreated it with the wizard yesterday afternoon.
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfghttp://assets.nagios.com/downloads/nagi ... Router.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Capacity Planning Graphs - values not JSON compliant
Ok I will follow the steps outlined for the two I recreated.
However the Capacity Planning Graphs show blank for ALL hosts, not just the ones I recreated.
In other words, if I try to access 50 hosts graphs per page, I get 50 of the blank graphs like I posted in the attachment above. There is no host name or service name displayed and no data, just the blank frame sections.
However the Capacity Planning Graphs show blank for ALL hosts, not just the ones I recreated.
In other words, if I try to access 50 hosts graphs per page, I get 50 of the blank graphs like I posted in the attachment above. There is no host name or service name displayed and no data, just the blank frame sections.
Re: Capacity Planning Graphs - values not JSON compliant
After looking at the mrtg.cfg it has a statement that includes all the .CFG files from /etc/mrtg/conf.d
I ran LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg .check
and found several errors - I deleted those .cfg files that were in error and now have clean report. I deleted any monitors associated with those .cfg files and Still no capacity graphs
I ran LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg .check
and found several errors - I deleted those .cfg files that were in error and now have clean report. I deleted any monitors associated with those .cfg files and Still no capacity graphs
Re: Capacity Planning Graphs - values not JSON compliant
I believe we will need to move this to our email ticketing system and get our developers involved. Can you send us your latest profile to [email protected]? Type "Capacity Planning Graphs - values not JSON compliant" in the email's subject filed.
Admin->System Profile->Download Profile
Admin->System Profile->Download Profile
Be sure to check out our Knowledgebase for helpful articles and solutions!