Page 1 of 1

Performance Graphs

Posted: Tue Oct 20, 2020 2:16 pm
by umunix
Hi Nagios Folks,

We notice that when the time-series data changes for a check, the performance graphs cease to update, or in some cases continues to update but the time-series data is mislabeled. This usually happens when the performance data changes / a metric is added.

Historically our solution to this problem has been to simply delete the .xml and .rrd in /usr/local/nagios/share/perfdata/[host]

However, for us this has always been a manual ad-hoc effort and we were wondering if
1. There was a way to programmatically identify graph data that has errors/seen changes to them so we can clean them up
2. There was a way to modify performance data to integrate new metrics without losing old data. It would be nice not to delete valid historical data after adding a new metric to the graph.

Thanks!
Richard

Re: Performance Graphs

Posted: Wed Oct 21, 2020 2:10 pm
by benjaminsmith
Hi,

Some good questions here. My understanding of this is that while you can merge rrd files, they must have the same structure or it's not going to be able to plot the graph. Take a look at the following forum thread for a program for merging rrd's.

how to merge two rrd files

There's probably way to create a bash script to monitor which files are in the perf data directory are not being updated. An easy option right now would be to monitor the spool directory and running the Nagios XI Server wizard will monitor the necessary XI processes for you.

Code: Select all

./folder_watch.pl -f -T 'files' -D /usr/local/nagios/var/spool/perfdata/ -F '[^\0] ' -w 500 -c 1000
https://support.nagios.com/kb/article.php?id=783

Hope that helps and let me know if you have further questions.

Benjamin