Page 1 of 1

Accessing old performance graphs

Posted: Thu Nov 24, 2011 6:02 pm
by Box293
When we disable an obsolete host, obviously we cannot access the performance graphs from the XI GUI any more.

In the past I thought I was able to go to http://vault21.vault.local/nagios/pnp/ and browse all the graphs in the backend.

However when I've tried it recently I don't get all the objects anymore in a list. It's probably due a pnp upgrade. I only get access to the active objects by using the search box.

Is there any way that I can access the old objects?

The reason why is we may do a server replacement, like Windows 2003 to Windows 2008 R2 and we would like to go back to compare the performance data. The only way I can do this easily is to disable the obsolete host object and then later on go back and enable it when I want to look at the graphs.

Another instance when this occurs is if you rename a host (say from lower case to upper case). The existing performance graphs data is there but not accessible.

Re: Accessing old performance graphs

Posted: Mon Nov 28, 2011 11:48 am
by mguthrie
There's not a "tested" solution for this, but I have seen this question before and I've heard the below tool is a script that will do this. (Try it on a test set of files first).

http://oss.oetiker.ch/rrdtool/pub/contrib/merge-rrd.txt
http://oss.oetiker.ch/rrdtool/pub/contrib/merge-rrd.tgz

Re: Accessing old performance graphs

Posted: Wed Feb 01, 2012 1:09 am
by Box293
OK so I had some time to test this out today. The merge-rrd script seemed to have a bug and didn't work (it's also 7 years old).

I tried four other tools out there until I came across rrdmerge by Christian Theune.

I liked this utility because it allowed me to merge the old data into the new rrd file (some other ones out there made your create a new file, too complicated for my liking).

https://bitbucket.org/ctheune/rrdmerge

I will probably end up writing a custom component for this. If I rename a host object I could then use a custom component to import all of the old rrd data into the new rrd data files.

Re: Accessing old performance graphs

Posted: Wed Feb 01, 2012 10:29 am
by mguthrie
That'd be pretty sweet, and I know there'd be people who would use it. Thanks for the link for the merge script!