If I adjust the timeframe out to a point where there was something to report then it shows that, then the line disappears altogether.
This pic shows last week when I forced out a count to report, just to make sure it was working at all.
Graph not displaying data on 0
Re: Graph not displaying data on 0
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Graph not displaying data on 0
What version of Nagios XI are you running?
Re: Graph not displaying data on 0
Version 5.5.8
Re: Graph not displaying data on 0
The issue that you are experiencing with the graph sounds similar to the issue in this post.
https://support.nagios.com/forum/viewto ... 16&t=52031
Even though your plugin does not return a letter c in the performance data, it could still be graphing the data the same and causing the error.
On page 3 are instructions for creating a template, adjust it to the names of your command.
And, after creating the template, you will have to delete the .rrd and .xml files to they will be recreated using the template.
https://support.nagios.com/forum/viewto ... 16&t=52031
Even though your plugin does not return a letter c in the performance data, it could still be graphing the data the same and causing the error.
On page 3 are instructions for creating a template, adjust it to the names of your command.
And, after creating the template, you will have to delete the .rrd and .xml files to they will be recreated using the template.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Graph not displaying data on 0
I'll be trying to fix out shortly. Thanks pointing that out.
Re: Graph not displaying data on 0
OK, let us know how it works out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Graph not displaying data on 0
Forgot to edit the name of the config to match my command, yesterday. Ok, it took the config and guage entry. Been a half hour and I don't see anything new yet. I'll let it roll on for a couple more hours to see if it picks up.
2019-03-05 11:35:11 [24485] [2] Datatype set to 'SERVICEPERFDATA'
2019-03-05 11:35:11 [24485] [1] Found Performance Data for CIC-GW0 / Check_102_Errors ('Code Count'=0;10;100;0;1000)
2019-03-05 11:35:11 [24485] [2] Adapting Template using ARG 0,1
2019-03-05 11:35:11 [24485] [2] Adapting Template to cic-gw0_102check_gauge.php (added ARG0)
2019-03-05 11:35:11 [24485] [2] Adapting Template to cic-gw0_102check_gauge.php as defined in /usr/local/nagios/etc/pnp/check_c$
2019-03-05 11:35:11 [24485] [2] Adapting RRD Datatype to "GAUGE" as defined in /usr/local/nagios/etc/pnp/check_commands/cic-gw0$
2019-03-05 11:35:11 [24485] [2] Template is cic-gw0_102check_gauge.php
2019-03-05 11:35:11 [24485] [2] data2rrd called
2019-03-05 11:35:11 [24485] [2] Reading /usr/local/nagios/etc/pnp/rra.cfg
2019-03-05 11:35:11 [24485] [2] RRDs::create /usr/local/nagios/share/perfdata/CIC-GW0/Check_102_Errors.rrd RRA:AVERAGE:0.5:1:28$
2019-03-05 11:35:11 [24485] [2] /usr/local/nagios/share/perfdata/CIC-GW0/Check_102_Errors.rrd created
2019-03-05 11:35:11 [24485] [2] Datatype set to 'SERVICEPERFDATA'
2019-03-05 11:35:11 [24485] [1] Found Performance Data for CIC-GW0 / Check_102_Errors ('Code Count'=0;10;100;0;1000)
2019-03-05 11:35:11 [24485] [2] Adapting Template using ARG 0,1
2019-03-05 11:35:11 [24485] [2] Adapting Template to cic-gw0_102check_gauge.php (added ARG0)
2019-03-05 11:35:11 [24485] [2] Adapting Template to cic-gw0_102check_gauge.php as defined in /usr/local/nagios/etc/pnp/check_c$
2019-03-05 11:35:11 [24485] [2] Adapting RRD Datatype to "GAUGE" as defined in /usr/local/nagios/etc/pnp/check_commands/cic-gw0$
2019-03-05 11:35:11 [24485] [2] Template is cic-gw0_102check_gauge.php
2019-03-05 11:35:11 [24485] [2] data2rrd called
2019-03-05 11:35:11 [24485] [2] Reading /usr/local/nagios/etc/pnp/rra.cfg
2019-03-05 11:35:11 [24485] [2] RRDs::create /usr/local/nagios/share/perfdata/CIC-GW0/Check_102_Errors.rrd RRA:AVERAGE:0.5:1:28$
2019-03-05 11:35:11 [24485] [2] /usr/local/nagios/share/perfdata/CIC-GW0/Check_102_Errors.rrd created
Re: Graph not displaying data on 0
Did you delete the existing rrd and xml files for that service so they get recreated using the template?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Graph not displaying data on 0
Yes, they were deleted prior to restarting nagios and ncpd. So it seems it's still not graphing. I'm going to edit the output of the perf data and see if making it a counter helps.
Re: Graph not displaying data on 0
Can you get the rrd and the xml file for that service and post them here so I can view the raw data?
Code: Select all
/usr/local/nagios/share/perfdata/CIC-GW0/Check_102_Errors.rrd
/usr/local/nagios/share/perfdata/CIC-GW0/Check_102_Errors.xmlBe sure to check out our Knowledgebase for helpful articles and solutions!