Page 1 of 1

Errors upgrading or applying configuration

Posted: Fri Apr 05, 2019 2:06 pm
by kavan
Linux Distribution and version?
CentOS release 6.10 (Final)

32 or 64bit?
x86_64

VMware Image or Manual Install of XI?
Hyper-v vhd download

Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?
Not that I'm aware of. no, and no.

I am getting an error when trying to apply my configuration that a service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/<IPaddress>.cfg', starting on line 93)

The referenced file does not exist when I'm logged into terminal.

I have tried the procedure at https://support.nagios.com/kb/article.php?id=144 and though my validation using the config file management tools reports "Things look okay - No serious problems were detected during the pre-flight check" I still get that error when I go to apply the configuration.

Re: Errors upgrading or applying configuration

Posted: Fri Apr 05, 2019 2:17 pm
by npolovenko
Hello, @kavan. First, please run the following query to check the database tables for corruption:
mysqlcheck -r -f -uroot -pnagiosxi --all-databases --use_frm
After that please go to the following folder:
/usr/local/nagiosxi/scripts/
Run the reconfigure script and show us the output:
./reconfigure_nagios.sh
Or if you don't want to disclose service names you can send me the output in a private message.

Could you also generate and send in your Nagios XI System Profile so I can review it?
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and send it to me in a private message.

Re: Errors upgrading or applying configuration

Posted: Tue Apr 09, 2019 2:55 pm
by kavan
Thank you npolovenko! Per your PM I ran

# rm -rf /usr/local/nagios/etc/import/*

And then re-ran the reconfigure_nagios.sh command and it went through clean. I can now apply configuration changes and stop the spam from devices I disconnected. Thanks again!

Re: Errors upgrading or applying configuration

Posted: Tue Apr 09, 2019 4:23 pm
by npolovenko
@kavan, Thanks for the update! I will go ahead and close this thread as resolved.