Page 1 of 2

Nagios Upgrade

Posted: Mon Mar 20, 2017 10:40 am
by aajewole
Hi, I will like to upgrade nagios from 4.1.1 to 4.3.1. We have a lot of custom plugin, commands, resources, nagios.cfg, cgi, eventhandler custom scripts, and scripts that change the notification to on-call staff per SQL database. I will like to keep all this custom features while done with the upgrade. What step do I need to take? Our nagios box is not connected to the internet to do wget, so will manually have to download and copy the source code to the box.

I have 1 production box, 1 backup box, and one dev box with same configuration so I can test the upgrade before actually doing it on production box.

Re: Nagios Upgrade

Posted: Mon Mar 20, 2017 2:02 pm
by rkennedy
As long as you haven't made any custom changes to the actual Nagios Core components (just your object files as you described) - then you should be fine to upgrade.

https://assets.nagios.com/downloads/nag ... ading.html

Re: Nagios Upgrade

Posted: Mon Mar 20, 2017 2:22 pm
by dwhitfield
Are you using NDOUtils for your database? Are you using anything like mk-livestatus? Strictly speaking, what @rkennedy says is correct, but we have very little information about your setup at this point.

Re: Nagios Upgrade

Posted: Thu Mar 23, 2017 6:49 am
by aajewole
Thanks for the reply. No, we havent made any change to any nagios core components. No NDOUtils, we are using the native database, no mk-livestatus. I will say most of our custom changes were made to objects. Thanks

Re: Nagios Upgrade

Posted: Thu Mar 23, 2017 12:35 pm
by mcapra
You should be fine to upgrade. Object definitions rarely cause issues unless you're switching major versions (eg 3.x to 4.x). If you have the option, I would recommend taking a VM level snapshot of your Nagios Core machine.

Re: Nagios Upgrade

Posted: Wed Apr 05, 2017 1:56 pm
by aajewole
Upgrade went fine and super easy, except on the web page, when I click on "Map" I get the following error message >

Not Found

The requested URL /nagios/map.html was not found on this server.

Other links work fine for now. Waiting for a week and will upgrade the other two box.

Re: Nagios Upgrade

Posted: Wed Apr 05, 2017 3:02 pm
by cdienger
Thanks for the update. It looks like the link may be pointing to an old html file instead of the correct map.php?host=all. Please provide us with a copy of the /usr/local/nagios/share/side.php so that we can verify that link and the rest of the links.

Re: Nagios Upgrade

Posted: Wed Apr 05, 2017 3:10 pm
by aajewole
Please see attached

Re: Nagios Upgrade

Posted: Thu Apr 06, 2017 11:10 am
by mcapra
Hmm, nothing strange in there. Can you share your apache configs? They may be redirecting that page incorrectly.

This should put them all in a tarball. Feel free to include any additional ones you think may be relevant:

Code: Select all

tar -cvf /tmp/43019_1.tar /etc/httpd/conf.d/

Re: Nagios Upgrade

Posted: Thu Apr 06, 2017 11:16 am
by cdienger
The source looks good. The browser may be caching an old page or Apache possibly hanging on to something. Try restarting Apache with "service httpd restart" and clearing your browser's cache as well. If that doesn't work, as a work around you should be able to see the map if you go to http://nagiosip/nagios/map.php?host=all. You can also confirm the source code your browser is getting by going to http://nagiosip/nagios/side.php and viewing the source code of that page.