Added new metric to check script - no graph for it

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
onzyone
Posts: 6
Joined: Mon Oct 15, 2012 3:33 pm

Added new metric to check script - no graph for it

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
onzyone
Posts: 6
Joined: Mon Oct 15, 2012 3:33 pm

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

Post 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
Locked