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
Performance graphs
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Performance graphs
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.
https://support.nagios.com/kb/article.php?id=783
Hope that helps and let me know if you have further questions.
Benjamin
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
Hope that helps and let me know if you have further questions.
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!