Page 1 of 1

Upgrading from 3.5.1 to 4.0.6

Posted: Wed May 07, 2014 4:48 am
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

Re: Upgrading from 3.5.1 to 4.0.6

Posted: Wed May 07, 2014 10:50 am
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. :)

Re: Upgrading from 3.5.1 to 4.0.6

Posted: Thu May 08, 2014 3:21 am
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

Re: Upgrading from 3.5.1 to 4.0.6

Posted: Thu May 08, 2014 9:29 am
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

Re: Upgrading from 3.5.1 to 4.0.6

Posted: Thu May 08, 2014 10:05 am
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!