Nagios RRD report

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Nagios RRD report

Post by inas.labib »

Nagios reporting:

Hi team,

When we tried to gather utlization report from the RRD tool directory in Nagios server for a particular host for a period of month with the below details. We are getting the average values as per the graph from Performance graph But the max value and last value is completely not matching,


Below were the commands used
Load:
-----
rrdtool graph Load.rrd --start 1519848000 --end 1522526399 DEF:v=Load.rrd:3:MAX PRINT:v:MAX:"%6.2lf max"
rrdtool graph Load.rrd --start 1519848000 --end 1522526399 DEF:v=Load.rrd:1:LAST PRINT:v:LAST:"%6.2lf last"
rrdtool graph Load.rrd --start 1519848000 --end 1522526399 DEF:var=Load.rrd:3:AVERAGE PRINT:var:AVERAGE:"%6.2lf avg"

Swap Usage:
-----------
rrdtool graph Swap_Usage.rrd --start 1519848000 --end 1522526399 DEF:v=Swap_Usage.rrd:1:MAX PRINT:v:MAX:"%6.2lf max"
rrdtool graph Swap_Usage.rrd --start 1519848000 --end 1522526399 DEF:v=Swap_Usage.rrd:1:LAST PRINT:v:LAST:"%6.2lf last"
rrdtool graph Swap_Usage.rrd --start 1519848000 --end 1522526399 DEF:v=Swap_Usage.rrd:1:AVERAGE PRINT:v:AVERAGE:"%6.2lf avg"

Ping:
-----
rrdtool graph Ping.rrd --start 1519848000 --end 1522526399 DEF:v=Ping.rrd:2:MAX PRINT:v:MAX:"%6.2lf max"
rrdtool graph Ping.rrd --start 1519848000 --end 1522526399 DEF:v=Ping.rrd:1:LAST PRINT:v:LAST:"%6.2lf last"
rrdtool graph Ping.rrd --start 1519848000 --end 1522526399 DEF:var=Ping.rrd:1:AVERAGE PRINT:var:AVERAGE:"%6.2lf avg
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios RRD report

Post by scottwilkerson »

When you say they are "not matching", what aren't they matching?

RRD files consolidate the data over time bases on predefined steps.

https://oss.oetiker.ch/rrdtool/tut/rrd- ... rs.en.html
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Re: Nagios RRD report

Post by inas.labib »

The max value received from the manual command as above from the rrd directory is not matching with the Max value received from perfomance graphs report for a period of a month.


Example the below command gives a different values.

for max:
rrdtool graph Swap_Usage.rrd --start 1519848000 --end 1522526399 DEF:v=Swap_Usage.rrd:1:MAX PRINT:v:MAX:"%6.2lf max"


But the below command gives exact same average value in both
for average:
rrdtool graph Load.rrd --start 1519848000 --end 1522526399 DEF:var=Load.rrd:3:AVERAGE PRINT:var:AVERAGE:"%6.2lf avg"
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios RRD report

Post by scottwilkerson »

inas.labib wrote:The max value received from the manual command as above from the rrd directory is not matching with the Max value received from perfomance graphs report for a period of a month.
The performance graphs are only reporting the consolidated values
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Re: Nagios RRD report

Post by inas.labib »

Ok .. Is there a way we can get the statistical report from Nagios. Like the requirement is we need to get the report of services and agents added newly to nagios. I can get a complete list of host and services separately.

We need to segregate this data and present it in a graphical way to show the incremental usage with Nagios.

Please suggest how can we achieve this from rrd tool or any other options.


Reference: Pnp4nagios and using the addon https://exchange.nagios.org/directory/A ... os/details
Thanks,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios RRD report

Post by scottwilkerson »

It's not possible because RRD always consolidates the values. That's what it does
https://en.wikipedia.org/wiki/RRDtool

You can make adjustments to the timeframe before the averaging starts but this can seriously impact disk usage on the XI server. Here's the doc
https://support.nagios.com/kb/article/n ... g-768.html
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked