Page 1 of 1

nagios xi monitoring engine stopped

Posted: Wed Apr 17, 2019 11:28 am
by rnjie
Hey, my monitoring engine on nagios xi just stopped working after i deleted a host from monitoring, after deleting i couldnt apply configuration, i was getting the following error

Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/LXOASWS3.cfg', starting on line 16)

when i go on the command line, this host file doesnt even exist
i have tried restarting nagios service but it wouldn't restart and its giving me the same error above

i can still see the host monitoring in my home page but it is not found in the config manager(ccm)
when i click the service is says its not found, any idea what to do?

Re: nagios xi monitoring engine stopped

Posted: Wed Apr 17, 2019 12:59 pm
by lmiltchev
You should be able to find the service in the CCM... What do you see on line 16 in the "/usr/local/nagios/etc/services/LXOASWS3.cfg" file?

It is possible that the service was added to hostgroup, and by deleting the host, you removed the last member of this hostgroup, so now the service is not attached to a host or a hostgroup, and configuration fails.

Can you PM me your profile?
Admin > System Profile > Download Profile

Also, go to the CCM > Configuration Snapshots, download the most recent failed snapshot (colored in red), and PM it to me. Please provide both files, the *tar.gz and the command output.

Re: nagios xi monitoring engine stopped

Posted: Wed Apr 17, 2019 1:41 pm
by rnjie
thank you for your reply but i figured it out, the line 16 had no issues so i manually deleted the file but after a while it regenerated by it self and what i did was go to ccm>tools>config management> click on written config files then deleted the files
after deleting it took about 5mins for nagios to reload which almost gave me a heart attack thinking i had deleted my whole configuration but that wasn't the case, when nagios finally reloaded it gave me an error saying "invalid max_check_attemps value" i so i went back to ccm and added the value in notifications and i was able to apply configuration and the monitoring engine is back on.

Please close the case!

Re: nagios xi monitoring engine stopped

Posted: Wed Apr 17, 2019 1:49 pm
by lmiltchev
I am glad your issue has been resolved! I am closing this topic.