Page 1 of 1

Nagios XI Graph

Posted: Mon Jun 12, 2017 9:03 am
by peter19x
Hello,

I was looking at my nagios graphs and I did not understand the legends that says Last and Avg and why they have the same value? 125.46 ? Thanks!

Attached is the picture.

Best Regards,
Peter

Re: Nagios XI Graph

Posted: Mon Jun 12, 2017 1:39 pm
by tgriep
If the format or the number of data points has changed since the graph was created, that could account for the issue you are seeing for the last equalling the Avg value.
When this happens, the xml and rrd files for that service check should be deleted so they will recreate themselves and get updated with plugin's performance output.

To delete them, go to this filoder in the Nagios server, replace <hostname> with the name if the host.

Code: Select all

/usr/local/nagios/share/perfdata/<hostname>
Delete both the .xml and .rrd files with the name of the service and in about 15 to 20 minutes, the graph should be recreated and the legends should show the correct output.
If not, post those files so we can view their contents.

Re: Nagios XI Graph

Posted: Wed Jun 14, 2017 5:25 am
by peter19x
Hello,

Still facing the same error after deleting the .rrd and .xml file of the service I was looking for.

It is good to note that I have only deleted the the files associated with my service and not all files in the host folder.

Also, those perf data graphs are being generated by a passive check using nrdp.

I couldn't cat the .rrd file, otherwise below is the .xml file output:

[hayekp@nagios-l GSIP-ZTP-SBC]$ cat X128_TRUNK_GITRK0000010121.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAGIOS>
<DATASOURCE>
<TEMPLATE>check_dummy</TEMPLATE>
<RRDFILE>/usr/local/nagios/share/perfdata/GSIP-ZTP-SBC/X128_TRUNK_GITRK0000010121.rrd</RRDFILE>
<RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
<RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
<IS_MULTI>0</IS_MULTI>
<DS>1</DS>
<NAME>Ongoing_Calls</NAME>
<LABEL>Ongoing Calls</LABEL>
<UNIT></UNIT>
<ACT>333</ACT>
<WARN></WARN>
<WARN_MIN></WARN_MIN>
<WARN_MAX></WARN_MAX>
<WARN_RANGE_TYPE></WARN_RANGE_TYPE>
<CRIT></CRIT>
<CRIT_MIN></CRIT_MIN>
<CRIT_MAX></CRIT_MAX>
<CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
<MIN></MIN>
<MAX></MAX>
</DATASOURCE>
<DATASOURCE>
<TEMPLATE>check_dummy</TEMPLATE>
<RRDFILE>/usr/local/nagios/share/perfdata/GSIP-ZTP-SBC/X128_TRUNK_GITRK0000010121.rrd</RRDFILE>
<RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
<RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
<IS_MULTI>0</IS_MULTI>
<DS>2</DS>
<NAME>Ingress_Calls</NAME>
<LABEL>Ingress Calls</LABEL>
<UNIT></UNIT>
<ACT>0</ACT>
<WARN></WARN>
<WARN_MIN></WARN_MIN>
<WARN_MAX></WARN_MAX>
<WARN_RANGE_TYPE></WARN_RANGE_TYPE>
<CRIT></CRIT>
<CRIT_MIN></CRIT_MIN>
<CRIT_MAX></CRIT_MAX>
<CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
<MIN></MIN>
<MAX></MAX>
</DATASOURCE>
<DATASOURCE>
<TEMPLATE>check_dummy</TEMPLATE>
<RRDFILE>/usr/local/nagios/share/perfdata/GSIP-ZTP-SBC/X128_TRUNK_GITRK0000010121.rrd</RRDFILE>
<RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
<RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
<IS_MULTI>0</IS_MULTI>
<DS>3</DS>
<NAME>Egress_Calls</NAME>
<LABEL>Egress Calls</LABEL>
<UNIT></UNIT>
<ACT>333</ACT>
<WARN></WARN>
<WARN_MIN></WARN_MIN>
<WARN_MAX></WARN_MAX>
<WARN_RANGE_TYPE></WARN_RANGE_TYPE>
<CRIT></CRIT>
<CRIT_MIN></CRIT_MIN>
<CRIT_MAX></CRIT_MAX>
<CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
<MIN></MIN>
<MAX></MAX>
</DATASOURCE>
<RRD>
<RC>0</RC>
<TXT>successful updated</TXT>
</RRD>
<NAGIOS_AUTH_HOSTNAME>GSIP-ZTP-SBC</NAGIOS_AUTH_HOSTNAME>
<NAGIOS_AUTH_SERVICEDESC>X128_TRUNK:GITRK0000010121</NAGIOS_AUTH_SERVICEDESC>
<NAGIOS_CHECK_COMMAND>check_dummy!0!"No data received yet."</NAGIOS_CHECK_COMMAND>
<NAGIOS_DATATYPE>SERVICEPERFDATA</NAGIOS_DATATYPE>
<NAGIOS_DISP_HOSTNAME>GSIP-ZTP-SBC</NAGIOS_DISP_HOSTNAME>
<NAGIOS_DISP_SERVICEDESC>X128_TRUNK:GITRK0000010121</NAGIOS_DISP_SERVICEDESC>
<NAGIOS_HOSTNAME>GSIP-ZTP-SBC</NAGIOS_HOSTNAME>
<NAGIOS_HOSTSTATE>UP</NAGIOS_HOSTSTATE>
<NAGIOS_HOSTSTATETYPE>HARD</NAGIOS_HOSTSTATETYPE>
<NAGIOS_MULTI_PARENT></NAGIOS_MULTI_PARENT>
<NAGIOS_PERFDATA>'Ongoing Calls'=333;;;;'Ingress Calls'=0;;;;'Egress Calls'=333;;;; </NAGIOS_PERFDATA>
<NAGIOS_RRDFILE>/usr/local/nagios/share/perfdata/GSIP-ZTP-SBC/X128_TRUNK_GITRK0000010121.rrd</NAGIOS_RRDFILE>
<NAGIOS_SERVICECHECKCOMMAND>check_dummy!0!"No data received yet."</NAGIOS_SERVICECHECKCOMMAND>
<NAGIOS_SERVICEDESC>X128_TRUNK_GITRK0000010121</NAGIOS_SERVICEDESC>
<NAGIOS_SERVICEOUTPUT>Ongoing_Calls:333 Ingress_Calls:0 Egress_Calls:333 Max Calls:0 Status:Available</NAGIOS_SERVICEOUTPUT>
<NAGIOS_SERVICEPERFDATA>'Ongoing Calls'=333;;;;'Ingress Calls'=0;;;;'Egress Calls'=333;;;;</NAGIOS_SERVICEPERFDATA>
<NAGIOS_SERVICESTATE>OK</NAGIOS_SERVICESTATE>
<NAGIOS_SERVICESTATETYPE>HARD</NAGIOS_SERVICESTATETYPE>
<NAGIOS_TIMET>1497434977</NAGIOS_TIMET>
<NAGIOS_XMLFILE>/usr/local/nagios/share/perfdata/GSIP-ZTP-SBC/X128_TRUNK_GITRK0000010121.xml</NAGIOS_XMLFILE>
<XML>
<VERSION>4</VERSION>
</XML>
</NAGIOS>

Re: Nagios XI Graph

Posted: Wed Jun 14, 2017 10:52 am
by scottwilkerson
What version of XI are you running? I believe I remember this being a bug a while back.

Re: Nagios XI Graph

Posted: Thu Jun 15, 2017 4:16 am
by peter19x
I'm on Nagios XI 2014R2.7

Re: Nagios XI Graph

Posted: Thu Jun 15, 2017 12:32 pm
by scottwilkerson
In XI 5.3.4
- Fixed default last, avg, max values to be set for perfdata graphs [TPS#10359] -JO
If you upgrade to the latest your problem should be solved

Re: Nagios XI Graph

Posted: Fri Jul 21, 2017 4:06 am
by peter19x
Cheers, Thank you

Re: Nagios XI Graph

Posted: Fri Jul 21, 2017 3:16 pm
by tmcdonald
Did you have any further (related) questions or are we okay to close this thread?

Re: Nagios XI Graph

Posted: Tue Jul 25, 2017 3:55 am
by peter19x
Ok to close.

Thanks

Re: Nagios XI Graph

Posted: Tue Jul 25, 2017 9:04 am
by bolson
Closing topic as resolved.

Thank you for using the Nagios Support Forum.