Accessing old performance graphs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Accessing old performance graphs

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Accessing old performance graphs

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Re: Accessing old performance graphs

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Accessing old performance graphs

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