problem update 2014r1.3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mhinjos
Posts: 12
Joined: Fri Jan 24, 2014 5:14 am

problem update 2014r1.3

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

Re: problem update 2014r1.3

Post 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.
mhinjos
Posts: 12
Joined: Fri Jan 24, 2014 5:14 am

Re: problem update 2014r1.3

Post by mhinjos »

0 warnings
0 error

The result is correct
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: problem update 2014r1.3

Post by abrist »

Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
mhinjos
Posts: 12
Joined: Fri Jan 24, 2014 5:14 am

Re: problem update 2014r1.3

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

Re: problem update 2014r1.3

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: problem update 2014r1.3

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
mhinjos
Posts: 12
Joined: Fri Jan 24, 2014 5:14 am

Re: problem update 2014r1.3

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: problem update 2014r1.3

Post by sreinhardt »

Awesome, you're all set! I'll lock this up then.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked