Page 2 of 2
Re: Graph not displaying data on 0
Posted: Tue Feb 26, 2019 5:04 pm
by tsawyer
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.
102errorsnipwithcounts.PNG
Re: Graph not displaying data on 0
Posted: Wed Feb 27, 2019 8:01 am
by scottwilkerson
What version of Nagios XI are you running?
Re: Graph not displaying data on 0
Posted: Thu Feb 28, 2019 12:12 pm
by tsawyer
Version 5.5.8
Re: Graph not displaying data on 0
Posted: Thu Feb 28, 2019 5:12 pm
by tgriep
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.
Re: Graph not displaying data on 0
Posted: Mon Mar 04, 2019 4:33 pm
by tsawyer
I'll be trying to fix out shortly. Thanks pointing that out.
Re: Graph not displaying data on 0
Posted: Mon Mar 04, 2019 4:49 pm
by tgriep
OK, let us know how it works out.
Re: Graph not displaying data on 0
Posted: Tue Mar 05, 2019 2:59 pm
by tsawyer
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
Re: Graph not displaying data on 0
Posted: Tue Mar 05, 2019 4:30 pm
by tgriep
Did you delete the existing rrd and xml files for that service so they get recreated using the template?
Re: Graph not displaying data on 0
Posted: Wed Mar 06, 2019 1:45 pm
by tsawyer
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
Posted: Wed Mar 06, 2019 3:29 pm
by tgriep
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.xml