Home » Categories » Multiple Categories

Nagios XI - Performance Data Averaging

Overview

This KB article will explain how performance data is averaged over time and why.

 

Performance Data Explained

In Nagios XI the data that is displayed in the performance graphs comes from data files called a Round Robin Database (RRD).

Those files are a fixed size and to store the data for long periods, it has to be averaged out with the previous data.

When that happens, there will be a loss of accuracy and when you specify a time range further back in time, there will be less accuracy and the data will be different.

Generally you only see this behavior when your performance data has peaks and troughs. Checks like disk usage that usually report the same value with little variation do not get averaged as much due to the similarity of the data samples in the same time period.

When an RRD file is first created it is uses the config file /usr/local/nagios/etc/pnp/rra.cfg to determine how many data entries will be stored within it, the size of the file will always remain the same size.

Here is an explanation of how the config file creates the RRD file:

 

RRA:AVERAGE:0.5:1:2880
The above entry will store 2880 entries of the average data in the rrd file with 1 minute step for each entry which equals 48 hours of data.

These entries will be the most accurate.

After the 48 hours, the last entry will be removed and added to the next section. It will be averaged and some accuracy will be lost.

If you display a graph in this timeframe, this is the data you are looking at.

 

RRA:AVERAGE:0.5:5:2880

The above entry will store 2880 entries of the average data in the rrd file with 5 minute step for each entry which equals 10 days of data.

Since the data is an average of 5 of the one minute entries, the results will be slightly less accurate.

If you display a graph for example last 7 days, this is the data you are looking at plus the above entries.

 

RRA:AVERAGE:0.5:30:4320

The above entry will store 4320 entries of the average data in the rrd file with 30 minute steps for each entry which equals 90 days of data.

Since the data is an average of 6 of the 5 minute entries, the results will be slightly less accurate.

If you display a graph for example last month, this is the data you are looking at.

 

RRA:AVERAGE:0.5:360:5840

The above entry will store 5840 entries of the average data in the rrd file with 360 minute steps for each entry which equals 4 years of data.

Since the data is an average of of the 30 minute entries, the results will be slightly less accurate.

If you display a graph for example last year, this is the data you are looking at.

 

The reason the RRD files are used is to save space, generally people don't look at performance data after a specific duration has past.

The RRD files are approximately around 750K for about 47,760 data points. To save the most accuracy over a 4 year span with 1 minute intervals, that would be 4,579,200 data points and that would make a single RRD file 71MB in size, so the averaging keeps the file at an acceptable level. If you had 1000 hosts then that would use about 71GB of disk space, just for one performance graph per host. If those hosts had 10 services each then you are looking at about 710GB of disk space.

You can see how quickly disk space can be consumed storing old performance data that in reality is rarely accessed.


 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



-

Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - Adding Services To Pre-existing Switch or Router
Viewed 9610 times since Wed, Jan 27, 2016
Nagios XI - Optimizing The PHP Settings File
Viewed 60107 times since Thu, Jul 13, 2017
PHP 7.2 to 7.4 Upgrade Instructions for CentOS Stream 8
Viewed 4616 times since Wed, Feb 2, 2022
Nagios XI - Hardware Requirements - Baseline Testing
Viewed 6014 times since Sun, Jul 17, 2016
Nagios XI - Network Status Map Customization (Legacy)
Viewed 6842 times since Sun, Jul 23, 2017
Nagios XI - Understanding Email Sending
Viewed 10427 times since Tue, May 2, 2017
Nagios XI - Understanding Notification Escalations
Viewed 5459 times since Thu, Jan 28, 2016
Nagios XI - Standard Edition Reports
Viewed 3747 times since Tue, Jul 18, 2017
Nagios XI - Understanding Notification Variables
Viewed 7965 times since Thu, Jan 28, 2016
Nagios XI - Scheduling Reports and Pages
Viewed 4200 times since Thu, Jan 28, 2016

SB