Page 1 of 1

problem update 2014r1.3

Posted: Thu Jul 24, 2014 7:14 am
by mhinjos
Hi,
I use nagiosxi 2012R2.9 on centos 32 bits and I would like to upgrade to 2014r1.3 and the upgrade result is in error:

You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

make install-init
- This installs the init script in /etc/rc.d/init.d

make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file

make install-config
- This installs sample config files in /usr/local/nagios/etc

make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.6'
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
You have mail in /var/spool/mail/root

I have cheked the configuration and I have no warnings and no error

My client has the licensed product, any ideas?

Re: problem update 2014r1.3

Posted: Thu Jul 24, 2014 10:21 am
by slansing
What is the output of:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
You can also check with CCM > Tools > Write Config Tool > Write/Verify.

Re: problem update 2014r1.3

Posted: Thu Jul 24, 2014 1:02 pm
by mhinjos
0 warnings
0 error

The result is correct

Re: problem update 2014r1.3

Posted: Thu Jul 24, 2014 1:05 pm
by abrist

Re: problem update 2014r1.3

Posted: Fri Jul 25, 2014 5:11 am
by mhinjos
I Resolved the error, and the update have a new error:


Installing new PNP templates...
Updating init script...
Enabling large install tweaks...
Fixing config file permissions...
Fixing htpasswd permissions...
Checking group memberships...
Installing new XI templates...
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=n@gweb' -O nagiosql.login--2014-07-25 12:06:38-- http://localhost/nagiosxi/includes/components/ccm/
Resolving proxy... 10.4.2.4
Connecting to proxy|10.4.2.4|:8080... connected.
Proxy request sent, awaiting response... 504 Gateway Timeout
2014-07-25 12:06:38 ERROR 504: Gateway Timeout.

NAGIOSQL LOGIN FAILED!


Seems to have updated everything, but my doubts arise that this well

Re: problem update 2014r1.3

Posted: Fri Jul 25, 2014 1:33 pm
by slansing
You're going to need to configure the XI system to use your proxy:

http://support.nagios.com/wiki/index.ph ... th_Proxies

Let us know if you have questions.

Re: problem update 2014r1.3

Posted: Fri Jul 25, 2014 1:34 pm
by sreinhardt
Looks like your wget proxy stuff isn't configured right. Try excluding localhost from the proxy like here: http://support.nagios.com/wiki/index.ph ... th_Proxies

Re: problem update 2014r1.3

Posted: Mon Jul 28, 2014 4:06 am
by mhinjos
Ok, thanks

finally in my case I just went to launch the update previously exporter proxy

export http_proxy=localhost
and the finish is ok

WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.0.7
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 06-03-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'K: Drive Space' on host 'SQLCLPRODCHMI1' (config file '/usr/local/nagios/etc/services/servicios_windows.cfg', starting on line 182)
Warning: Duplicate definition found for service 'K: Drive Space' on host 'SQLCLPRECHMI1' (config file '/usr/local/nagios/etc/services/servicios_windows.cfg', starting on line 193)
Warning: Duplicate definition found for service 'K: Drive Space' on host 'SQLCLINTRABDI1' (config file '/usr/local/nagios/etc/services/servicios_windows.cfg', starting on line 193)
Warning: Duplicate definition found for service 'K: Drive Space' on host 'EXDAGSANITAS1' (config file '/usr/local/nagios/etc/services/servicios_windows.cfg', starting on line 193)
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 8866 services.
Checked 983 hosts.
Checked 87 host groups.
Checked 18 service groups.
Checked 53 contacts.
Checked 25 contact groups.
Checked 194 commands.
Checked 13 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 983 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 13 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...done.
Stopping nagios: .done.
Starting nagios: done.
Fixing php-mcrypt bug...
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
==================
UPGRADE COMPLETED!
==================

thank you very much

Re: problem update 2014r1.3

Posted: Mon Jul 28, 2014 12:17 pm
by sreinhardt
Awesome, you're all set! I'll lock this up then.