Errors upgrading or applying configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kavan
Posts: 7
Joined: Fri May 11, 2018 1:49 pm

Errors upgrading or applying configuration

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Errors upgrading or applying configuration

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kavan
Posts: 7
Joined: Fri May 11, 2018 1:49 pm

Re: Errors upgrading or applying configuration

Post 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!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Errors upgrading or applying configuration

Post by npolovenko »

@kavan, Thanks for the update! I will go ahead and close this thread as resolved.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked