How to get average of month from specific rrd file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
capgemtools
Posts: 56
Joined: Wed Aug 12, 2020 3:16 pm

How to get average of month from specific rrd file

Post by capgemtools »

Hi Support,

How can we get AVERAGE of Month from bandwidth RRD files. While looking on internet found rrdtool graph command but not sure how to use it in this case. Can you please help.

For Eg.
from rrdtool fetch command we are getting list of values in 30 min average. We need a single line output for the day and month.

Please guide me to achieve this.
Thanks,
Supriya
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to get average of month from specific rrd file

Post by cdienger »

You've probably run a command like this:

Code: Select all

rrdtool fetch filename.rrd AVERAGE --start 1605039240  --end 1605040240
which will give yo the values for the start and stop ranges specified. I believe this is the extent of what the rrdtool can do to provide you the information you're looking for so you'll need to take whatever steps that work in your environment to manipulate the data into a format you're looking for.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.