Nagios Upgrade
Nagios Upgrade
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.
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
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
https://assets.nagios.com/downloads/nag ... ading.html
Former Nagios Employee
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Nagios Upgrade
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
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
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/
https://www.mcapra.com/
Re: Nagios Upgrade
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.
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
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.
Re: Nagios Upgrade
Please see attached
- Attachments
-
- side.txt
- side.php
- (6.05 KiB) Downloaded 250 times
Re: Nagios Upgrade
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:
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/
https://www.mcapra.com/
Re: Nagios Upgrade
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.