Page 1 of 1

Added new metric to check script - no graph for it

Posted: Mon Oct 15, 2012 3:39 pm
by onzyone
Nagios XI 2011R3.3
OS: redhat 6.2

First off some background. I download and added a plugin from nagios exchange, plugin output was as expected, graphs were been generated as expected. The issue was that I need to capture one other piece of data from this plugin. I modified the script and again the output data was as expected and the new data point shows up in the advanced tab, in the performance data section.

The issue is that the new graph doesn’t show up unless I delete the rrd file … and I really don’t what to do that as it has a lot of data in there (about a months’ worth now)

Let me know what my options are

Re: Added new metric to check script - no graph for it

Posted: Mon Oct 15, 2012 4:21 pm
by scottwilkerson
There isn't an easy way to do this however in researching this for you I did stumble on this blog that make is look fairly strait forward with a perl script.

Code: Select all

yum install perl-RRD-Simple -y
http://jon.netdork.net/2011/03/16/addin ... -database/

FYI, I haven't tested this and I would be sure you have a backup of the rrd before attempting this.

Re: Added new metric to check script - no graph for it

Posted: Tue Oct 16, 2012 8:27 am
by onzyone
Thank you for the quick response.

in a cheezy Sean Connery accent:
"worked like a charm!"

Just one other thing (as was new to rrd files), you can run rrdtool info <yourfilename> to get the data ID required for the script