Page 6 of 7

Re: nagiosxi stuck at applying configuration

Posted: Mon Jan 13, 2014 12:35 pm
by nanz28v
tried it still not working...Will rebuild take a long time to complete?

Re: nagiosxi stuck at applying configuration

Posted: Mon Jan 13, 2014 12:38 pm
by abrist
Depends on the size of your installation and how customized it was as well.

Re: nagiosxi stuck at applying configuration

Posted: Mon Jan 13, 2014 1:24 pm
by nanz28v
Do I need to remove Nagios first then reinstall? or just stop services is good enough?

Re: nagiosxi stuck at applying configuration

Posted: Mon Jan 13, 2014 1:27 pm
by abrist
A rebuild is best done on a fresh system. That said, have you considered contacting us for a quickstart ( 1 hour remote session with phone support)? It is a free, one time offer for those evaluating the product. We may be able to fix this issue and get your eval moving again without a full reinstall.

Re: nagiosxi stuck at applying configuration

Posted: Mon Jan 13, 2014 1:43 pm
by nanz28v
This phone support is great! I'll be available tomorrow after 9am. In the meantime I'll see if I can fix it and let you know by 5pm this afternoon. Thank you so much!

Re: nagiosxi stuck at applying configuration

Posted: Mon Jan 13, 2014 2:03 pm
by nanz28v
I'm trying to reinstall Nagios and I'm stuck here in the installation pdf:

Nagios Core Installation
tar zxvf nagios-4.0.2.tar.gz <== fine
tar zxvf nagios-plugins-1.5.tar.gz <== fine
Change to the new Nagios directory and install the packages:
cd nagios <== It says directory not found.

Re: nagiosxi stuck at applying configuration

Posted: Mon Jan 13, 2014 2:07 pm
by abrist
That is nagios core, not XI. XI does not use core 4 yet. You should use the XI installer. Follow the doc:
http://assets.nagios.com/downloads/nagi ... ctions.pdf
Do note that this installation assume a clean, minimal install of centos or redhat. Alternatively, we can try to solve your current XI problems in the quickstart tomorrow.

Re: nagiosxi stuck at applying configuration

Posted: Fri Jan 24, 2014 11:01 am
by nanz28v
We had re-installed NagiosXI on a clean RHEL 5 successfully. However we got a different error message when applying configuration. Here's the error log:


Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/AL5CMSCH01.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/al5cmsch01.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Error: Invalid max_check_attempts value for host 'AL5CMSCH01'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/AL5CMSCH01.cfg', starting on line 14)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

Re: nagiosxi stuck at applying configuration

Posted: Fri Jan 24, 2014 11:55 am
by tmcdonald
Error: Invalid max_check_attempts value for host 'AL5CMSCH01'

Go to the CCM and view the host 'AL5CMSCH01'. Check to see if max_check_attempts is valid, typically a single positive integer.

Re: nagiosxi stuck at applying configuration

Posted: Fri Jan 24, 2014 12:14 pm
by nanz28v
YES that fixed the issue! How come it is not shown as a required field but it is required?