Upgrading from 3.5.1 to 4.0.6

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.
Locked
willholt89
Posts: 3
Joined: Wed May 07, 2014 4:40 am

Upgrading from 3.5.1 to 4.0.6

Post by willholt89 »

Hi,

I have nagios installed and working great on CentOS 6. My Nagios version is 3.5.1

I was wondering how i can update to the newest version. Do i have to do it in certain steps or can i just update straight from 3.5.1.

Also how can i do this without losing my current configs?

I am also a linux/nagios beginner so any help would be appreciated

Regards

Will
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Upgrading from 3.5.1 to 4.0.6

Post by slansing »

Yep, you can do it safely, all you would essentially be doing is re-compiling Core:

http://assets.nagios.com/downloads/nagi ... Source.pdf

I would of course make backups of your configurations, or any data you feel relevant. :)
willholt89
Posts: 3
Joined: Wed May 07, 2014 4:40 am

Re: Upgrading from 3.5.1 to 4.0.6

Post by willholt89 »

ok i have followed that guide, but now i get internal server error on any links i click within the nagios web gui.

The homepage states that it is unable to get process results

Image

Image

Please Advise

Will
willholt89
Posts: 3
Joined: Wed May 07, 2014 4:40 am

Re: Upgrading from 3.5.1 to 4.0.6

Post by willholt89 »

Hi,

I have successfully resolved my issue.

The internal server error issue i was having was due to SELinux.

I disabled that using the following command

Code: Select all

setenforce 0
I then encountered an issue that where nagios didnt have permissions for the /usr/local/nagios/var/rw/ directory.

I rectified this using the following commands

Code: Select all

chown nagios:nagcmd /usr/local/nagios/var/rw 

chown nagios:nagcmd /usr/local/nagios/var/rw/nagios.cmd
Thank you for your help thus far

Regards

Will
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Upgrading from 3.5.1 to 4.0.6

Post by slansing »

Excellent! We're going to lock this thread up for now, if you have new questions feel free to open a new thread! Thanks!
Locked