nagiosxi stuck at applying configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post by nanz28v »

tried it still not working...Will rebuild take a long time to complete?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi stuck at applying configuration

Post by abrist »

Depends on the size of your installation and how customized it was as well.
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.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post by nanz28v »

Do I need to remove Nagios first then reinstall? or just stop services is good enough?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi stuck at applying configuration

Post 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.
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.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post 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!
Last edited by slansing on Mon Jan 13, 2014 2:05 pm, edited 1 time in total.
Reason: Please do not provide personal information on the public forum, if you are requesting phone support please call into our tech support line that was provided in your email from sales. I believe Abrist is helping you get this set up already.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi stuck at applying configuration

Post 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.
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.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagiosxi stuck at applying configuration

Post 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.
Former Nagios employee
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post by nanz28v »

YES that fixed the issue! How come it is not shown as a required field but it is required?
Locked