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?
problem update 2014r1.3
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: problem update 2014r1.3
What is the output of:
You can also check with CCM > Tools > Write Config Tool > Write/Verify.
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgRe: problem update 2014r1.3
0 warnings
0 error
The result is correct
0 error
The result is correct
Re: problem update 2014r1.3
Take a look at the FAQ:
http://support.nagios.com/wiki/index.ph ... 14_Upgrade
http://support.nagios.com/wiki/index.ph ... 14_Upgrade
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.
"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.
Re: problem update 2014r1.3
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
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
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.
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
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.
Re: problem update 2014r1.3
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
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
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.