Page 1 of 1
Nagios Upgrade issues
Posted: Wed Oct 31, 2012 10:37 am
by Bojan Lackanovic
I have just upgrade Nagios from version 3.2.3 to version 3.4.1.
I have two question.
1) Version confusion
On main nagios webpage showed
NagiosĀ® Coreā¢
Version 3.4.1
May 11, 2012
Check for updates
but if i do nagios -v command i got output:
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
2) Question
How i can relocate cgi.cfg file to new location, to keep Nagios service stable.
After upgrade i relocate all configuration files, but i have problem cgi.cfg.
Re: Nagios Upgrade issues
Posted: Fri Nov 02, 2012 3:18 pm
by scottwilkerson
This sounds like the CGI's got updated but nagios did not...
Had you moved the nagios binary on our server from the default location? Did you have errors compiling?
Re: Nagios Upgrade issues
Posted: Sat Nov 03, 2012 5:42 pm
by Bojan Lackanovic
Hm, probably i didn't complete upgrade.
During "upgrade" all my new configuration files created to /usr/local/nagios/etc/config
I moved old config files from old location /etc/nagios/ to new /usr/local/nagios/etc/config.
Only cgi files and nagios.cfg didn't relocated. I tried but unsucessfully.
First problem was more nagios processes, but i solve this.
Please help me to finish upgrade!
Thank you very much!
Re: Nagios Upgrade issues
Posted: Tue Nov 06, 2012 3:49 pm
by Bojan Lackanovic
Probably during upgrade/install i didn't replace binaryfiles /usr/bin/nagios.
Please confirm!? Can you provide upgrade link with detail procedure? My previous version was 3.2.3! Hm, was...! I didn't finish complete procedure!!!
I did follow this procedure
http://nagios.sourceforge.net/docs/3_0/upgrading.html
make all
Install updated binaries, documentation, and web web interface. Your existing configuration files will not be overwritten by this step.
Kind regard
Re: Nagios Upgrade issues
Posted: Thu Nov 08, 2012 7:41 am
by Bojan Lackanovic
CASE CLOSED!!!
1) I updated nagios.cfg file for apache with:
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" - cgi files version 3.4.1
2) Binary files are OK.
I have checked nagios service file (init.d) for binary files
prefix=/usr/local/nagios
exec_prefix=${prefix}
NagiosBin=${exec_prefix}/bin/nagios
I swith to this directory, do ./nagios and it is resulted with:
agios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
Earlier i do nagios - v from root but earlier version was installed from rmp and resulted with 3.2.3, but i am using 3.4.1 binary and html files.
Thank you very much.
Re: Nagios Upgrade issues
Posted: Thu Nov 08, 2012 2:44 pm
by slansing
Thanks for the update, it is valuable to the community!