Graph not displaying data on 0

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tsawyer
Posts: 13
Joined: Tue Apr 24, 2018 1:23 pm

Re: Graph not displaying data on 0

Post 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
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

Post by scottwilkerson »

What version of Nagios XI are you running?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tsawyer
Posts: 13
Joined: Tue Apr 24, 2018 1:23 pm

Re: Graph not displaying data on 0

Post by tsawyer »

Version 5.5.8
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Graph not displaying data on 0

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
tsawyer
Posts: 13
Joined: Tue Apr 24, 2018 1:23 pm

Re: Graph not displaying data on 0

Post by tsawyer »

I'll be trying to fix out shortly. Thanks pointing that out.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Graph not displaying data on 0

Post by tgriep »

OK, let us know how it works out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
tsawyer
Posts: 13
Joined: Tue Apr 24, 2018 1:23 pm

Re: Graph not displaying data on 0

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Graph not displaying data on 0

Post by tgriep »

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!
tsawyer
Posts: 13
Joined: Tue Apr 24, 2018 1:23 pm

Re: Graph not displaying data on 0

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Graph not displaying data on 0

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked