Page 1 of 1
Adding perfdata metrics to rrd's without losing history
Posted: Sat Dec 06, 2014 2:11 pm
by WillemDH
Hello,
Did some changes to
http://exchange.nagios.org/directory/Pl ... ks/details
So the plugin will not monitor disabled tasks. Is there some way to add disabled_tasks as perfdata metric, without having to delete the rrd and xml files for the service in /usr/local/nagios/share/perfdata ?
Grtz
Re: Adding perfdata metrics to rrd's without losing history
Posted: Sun Dec 07, 2014 7:32 pm
by Box293
We have had similar circumstances where we have had to add additional datasources to an RRD file due to the plugin now outputting additional datasources.
Have a look at this URL which includes a download zip which adds extra datasources to an RRD file:
ICMP and Ping Checks Stopped Graphing After XI 2014 Upgrade
Download zip
Re: Adding perfdata metrics to rrd's without losing history
Posted: Mon Dec 08, 2014 3:31 am
by WillemDH
Thanks again Troy,
So this should automtically compare rrd's with xml's and if datasources are missing, they will be added right? Already had to use this script, but I thought it was specially for ICMP datasources. reviewing the code a bit shows that it should work on all missing datasources, can you confirm?
Grtz
Willem
Re: Adding perfdata metrics to rrd's without losing history
Posted: Mon Dec 08, 2014 5:19 pm
by sreinhardt
Actually that script is agnostic to check type. It will always go through the entire perfdata folder and sub folders to correct them all. So if you were to set a bunch like this, run the script, I would expect that all of them should get fixed at once!
Re: Adding perfdata metrics to rrd's without losing history
Posted: Wed Jan 07, 2015 4:06 am
by WillemDH
Spenser,
I'd like to confirm that the rrd fix script works perfectly to make the graphs display new datasources!
Thread can be closed.
Thanks.
Willem
Re: Adding perfdata metrics to rrd's without losing history
Posted: Wed Jan 07, 2015 9:48 am
by cmerchant
We'll go ahead then and close this thread. Thanks.