Nagios Upgrade issues

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
Bojan Lackanovic
Posts: 13
Joined: Wed Oct 31, 2012 9:28 am

Nagios Upgrade issues

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Upgrade issues

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Bojan Lackanovic
Posts: 13
Joined: Wed Oct 31, 2012 9:28 am

Re: Nagios Upgrade issues

Post 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!
Bojan Lackanovic
Posts: 13
Joined: Wed Oct 31, 2012 9:28 am

Re: Nagios Upgrade issues

Post 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
Bojan Lackanovic
Posts: 13
Joined: Wed Oct 31, 2012 9:28 am

Re: Nagios Upgrade issues

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Upgrade issues

Post by slansing »

Thanks for the update, it is valuable to the community!
Locked