This is a cache of https://support.nagios.com/kb/article/performance-graphs-showing-data-during-host-down-time-periods-914.html. It is a snapshot of the page at 2025-05-12T01:12:17.569+0000.
Performance <strong>graph</strong>s Showing Data during Host Down Time Periods
Home » Categories » Products » Nagios XI » Troubleshooting

Performance graphs Showing Data during Host Down Time Periods

Why are performance graphs displaying data during periods when the host was down?

Overview

The data that makes up the graphs are stored in rrd files found under /usr/local/nagios/share/perfdata/<hostname>/. These files also hold information about how the data is stored and ultimately displayed, including the heartbeat setting "minimal_heartbeat" which by default holds the value 8460(seconds). If a host or service becomes unavailable for a period that does not exceed the heartbeat limit then a value is calculated for the time intervals that went missing. If the heartbeat value is exceeded, then no values will be stored and the graph will be blank for that time period.

Viewing the Heartbeat Value

To see the values and change them we can use the rrdtool command. For example:

rrdtool dump /usr/local/nagios/share/perfdata/localhost/PING.rrd | more


This will display something like:

<ds>
<name> 1 </name>
<type> GAUGE </type>
<minimal_heartbeat>8460</minimal_heartbeat>
<min>NaN</min>
<max>NaN</max>

<!-- PDP Status -->
<last_ds>0.145000</last_ds>
<value>1.7400000000e+00</value>
<unknown_sec> 0 </unknown_sec>
</ds>

<ds>
<name> 2 </name>
<type> GAUGE </type>
<minimal_heartbeat>8460</minimal_heartbeat>
<min>NaN</min>
<max>NaN</max>


Note that there are two data sources in the PING.rrd file - 1 and 2. The number of data sources and names can vary.

Changing the Heartbeat Value

Option 1

To change the heartbeat on the above you would run:

rrdtool tune --heartbeat 1:60
rrdtool tune --heartbeat 2:60


This would change the heartbeat for both data the data sources named "1" and "2" which you can then see by running the 'rrdtool dump' command again.

You would need to run these commands for each existing RRD file.

Option 2

Another option would be to modify /usr/local/nagios/etc/pnp/process_perfdata.cfg which includes this line:


RRD_HEARTBEAT = 8460

Change the value to the desired heartbeat length and then delete all the existing RRD files(or the ones you want to have the default value changed in). This method does remove all the old data and then creates new RRD files with the new default value. New hosts and services going forward would get this default value as well.



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

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

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 - LDAP / Active Directory - Import Users Certificate Issues
Viewed 9626 times since Tue, Jul 26, 2016
Upgrading EOL Operating Systems on a Nagios System
Viewed 5245 times since Thu, Apr 29, 2021
SNMP traps are now showing UNKNOWN for the sender IP
Viewed 4869 times since Tue, Jan 19, 2021
SSL Certificate does not validate properly
Viewed 5358 times since Wed, Jan 20, 2021
VMWare checks timing out or slow
Viewed 3828 times since Fri, Feb 11, 2022
OpenSSL causes issue with check_nrpe plugin with NSClient++
Viewed 9377 times since Fri, Apr 30, 2021