Adding perfdata metrics to rrd's without losing history

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Adding perfdata metrics to rrd's without losing history

Post 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
Nagios XI 5.8.1
https://outsideit.net
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Adding perfdata metrics to rrd's without losing history

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Adding perfdata metrics to rrd's without losing history

Post 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
Nagios XI 5.8.1
https://outsideit.net
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Adding perfdata metrics to rrd's without losing history

Post 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!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Adding perfdata metrics to rrd's without losing history

Post 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
Nagios XI 5.8.1
https://outsideit.net
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Adding perfdata metrics to rrd's without losing history

Post by cmerchant »

We'll go ahead then and close this thread. Thanks.
Locked