Page 1 of 2

Bulk Renaming Tool - Performance data issue

Posted: Mon Nov 06, 2017 5:23 am
by jacek
Hi,

I recently used the Bulk Renaming Tool on our Nagios XI Enterprise.
Everything worked fine, but the performance data is partly missing?

If I use the "modern" performance graphs everything is ok, all old data is there, but we are also using the legacy report called Availability, and there all performance data (switch port bandwidth) from the period with the old name is missing.
Why is this happening?
I would be really glad if I could use the data, as the Bulk Renaming Tool "promised" to keep old data in tact.

Thanks for any help!

Re: Bulk Renaming Tool - Performance data issue

Posted: Mon Nov 06, 2017 12:44 pm
by kyang
Which XI version are you on?

Which performance data is partly missing? All of the ones you renamed?

Did you rename hosts or services or both?
but we are also using the legacy report called Availability, and there all performance data (switch port bandwidth) from the period with the old name is missing
Could you post a screenshot of this?

Re: Bulk Renaming Tool - Performance data issue

Posted: Tue Nov 07, 2017 4:03 am
by jacek
Hi,
kyang wrote:Which XI version are you on?
NagiosXI 5.4.11 (all components also up to date)
kyang wrote:Which performance data is partly missing? All of the ones you renamed?
Very good question!
Checked on other services (like memory usage on servers) and also the host itself and the issue is the same, all data before the 12 Oct is gone in the report (and is present in the normal XI interface).
kyang wrote:Did you rename hosts or services or both?
In the bulk renaming tool I picked hosts, did not do anything with the services.
It was only about renaming the firs part of hosts.
kyang wrote:Could you post a screenshot of this?
Sure thing, attached ;)
Availability Report - You can see that data is only available from 12 Oct
Graph Explorer - You can see that data is available from before 31 Jul

Re: Bulk Renaming Tool - Performance data issue

Posted: Tue Nov 07, 2017 11:17 am
by lmiltchev
You are comparing two different things - the bandwidth perfdata (the Graph Explorer) to the state history - change of the state of the service (the "legacy" Trends report)...
Do you have any state changes for the selected time period? What do you see under the "State History" report (Reports > Available Reports > State History)?

Re: Bulk Renaming Tool - Performance data issue

Posted: Wed Nov 08, 2017 3:25 am
by jacek
Whooops! Sorry...

I checked the State History report (attached screen, data from 31.07.2017), and its showing data from "before name change", so the issue still remains - legacy report doesn't see the data, and the "normal" reports do...

Are there like 2 databases or?
How can I check how long such data is being kept in Nagios XI?
For obvious reasons one may wish to keep them for ever.

Re: Bulk Renaming Tool - Performance data issue

Posted: Wed Nov 08, 2017 10:50 am
by kyang
You can check how much data is being kept by going to XI Home --> Admin --> under System Config click "Performance Settings"

Here's a doc as well to explain.
https://assets.nagios.com/downloads/nag ... zation.pdf

Re: Bulk Renaming Tool - Performance data issue

Posted: Wed Nov 08, 2017 3:17 pm
by jacek
Yes, but this still doesn't explain, why my data is not available, its there, but not accessible by the report...
Anyone?

Re: Bulk Renaming Tool - Performance data issue

Posted: Wed Nov 08, 2017 4:29 pm
by dwasswa
@slytheer,

The data is not available once you change a hostname using the Bulk Renaming Tool because the Legacy Reports --> Trends is grabbing data from the nagios.log
The Renaming Tool allows for host and service names to be updated in bulk while retaining all historical status information and performance data. The renaming tool updates configurations based on what is defined in the Core Config Manager.
From the Bulk Renaming Tool, it says this.

I've tested it, and while changing the hostname, I am experiencing the same result as you, but when I change the hostname back to the original it retains all of the information from the nagios.log file when I go to the Legacy Reports --> Trends.

Re: Bulk Renaming Tool - Performance data issue

Posted: Wed Nov 08, 2017 4:43 pm
by jacek
So this means, that the Bulk Renaming Tool needs to get update or at least the description???
I cant check that myself right now, but is the logfile a normal text file?
Maybe I would replace the old name with the new one in this file to get things straight?

Re: Bulk Renaming Tool - Performance data issue

Posted: Wed Nov 08, 2017 4:57 pm
by dwhitfield
The concept is right, but in practice it's going to be slightly more complicated. It isn't literally the nagios.log file because that file gets rotated. Generally speaking, you can find the archives at /usr/local/nagios/var/archives

I'll put in a feature request for a more detailed Bulk Renaming Tool description.