Nagios Upgrade

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
aajewole
Posts: 40
Joined: Fri Aug 12, 2016 11:14 am

Nagios Upgrade

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Upgrade

Post 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
Former Nagios Employee
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Upgrade

Post 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.
aajewole
Posts: 40
Joined: Fri Aug 12, 2016 11:14 am

Re: Nagios Upgrade

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios Upgrade

Post 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.
Former Nagios employee
https://www.mcapra.com/
aajewole
Posts: 40
Joined: Fri Aug 12, 2016 11:14 am

Re: Nagios Upgrade

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Upgrade

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
aajewole
Posts: 40
Joined: Fri Aug 12, 2016 11:14 am

Re: Nagios Upgrade

Post by aajewole »

Please see attached
Attachments
side.txt
side.php
(6.05 KiB) Downloaded 235 times
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios Upgrade

Post 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/
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Upgrade

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked