Page 1 of 1

offline nagiosxi upgrade issue

Posted: Tue Sep 15, 2020 9:12 pm
by LM-PP1
Hello NAGIOS team,
I run an offline instance of Nagios 5.6.14. I have issues when moving to 5.7.1 or 5.7.2. It starts with the monitoring engine not working. When implemented fix in the forums, I have issues acknowledging the issues that appear in Nagios. These are the known issues before i have given up.

If i do the full install of 5.7.2 (not the upgrade) it works, but i lose all my performance graph history.

Is there a way to upgrade successfully from 5.6.14 to 5.7.2? I will do all the prep work (including updating the OS), but i do not want to implement reverting the NDo to the one used in 5.6.14.

If not, is there a way to get my performance graph history and move it to a fresh install of 5.7.2?

The datas:
CentOS 7.4
64 Bit
Manual install
No special configuration
nagios_tarball_upgrade_errors.txt
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.

Re: offline nagiosxi upgrade issue

Posted: Thu Sep 17, 2020 2:12 pm
by cdienger
I suspect that fresh install over an upgrade will yield the same results regarding the ndo behavior, but if you'd like to give this a go then transferring the perfdata is simply a mater of moving the folders found in /usr/local/nagios/share/perfdata/ on the old machine to the same directory on the new machine.

Re: offline nagiosxi upgrade issue

Posted: Tue Oct 27, 2020 9:27 pm
by LM-PP1
Sorry for the delayed response. I did do what you recommended and the duration of the the checks did not move over when i moved the perfdata over.

Re: offline nagiosxi upgrade issue

Posted: Wed Oct 28, 2020 4:17 pm
by cdienger
I'm not sure what you mean by duration, but I assume the you can't see the graphs after copying the files over. Did you make sure the permissions stayed the same? Try setting the permissions:

Code: Select all

chown -R nagios:nagios /usr/local/nagios/share/perfdata/
chmod 664 -R /usr/local/nagios/share/perfdata/
chmod 775 /usr/local/nagios/share/perfdata/*
Run:

Code: Select all

ls -alhR /usr/local/nagios/share/perfdata > listing.txt
and send me the listing.txt file if setting the permissions didn't help. Please also private message me a profile. A profile can be generated under Admin > System Config > System Profile > Download Profile, or from the command line with:

Code: Select all

/usr/local/nagiosxi/scripts/components/getprofile.sh 60090
The profile is then saved to /usr/local/nagiosxi/var/components/profile.zip.