nagios xi monitoring engine stopped

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

nagios xi monitoring engine stopped

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios xi monitoring engine stopped

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

Re: nagios xi monitoring engine stopped

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios xi monitoring engine stopped

Post by lmiltchev »

I am glad your issue has been resolved! I am closing this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked