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
Added new metric to check script - no graph for it
-
- 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
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.
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.
Code: Select all
yum install perl-RRD-Simple -y
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
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
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