Service has no hosts and/or service_description

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bita.valinejad
Posts: 1
Joined: Fri Dec 04, 2020 12:01 pm

Service has no hosts and/or service_description

Post by bita.valinejad »

Hi,
Once I try to add a host to a service I get following error
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/test-http.cfg', starting on line 16)
Can you please help me to figure out this issue
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Service has no hosts and/or service_description

Post by tgriep »

What version of XI are you running?
What OS and release is the system running?

If you go and edit that service, did you verify that a host has been added to the service as well as a description?

If so and you still get the error, do the following.
Go to the Core Config Manager > Services menu and search for that service test-http.
On the right side of the menu, click in the view config icon to show the settings.
Copy the configuration data in the browser tab and add it to the post so we can view it.

Try this to sync of the configurations to see if it resolves the error.
Login to the XI GUI and go to the Core Config Manager
Under "Tools", click "Write Config Files" or if you are running a newer versions of XI, The menu is called "Config File Management"
Click on the "Write" button, then the "Delete" button then click the "Write" button and then the "Verify" button.
If you get any errors, resolve them and click on the "Delete" button, "Write", "Verify" until all of the errors are resolved.
If the verification is good, click on the Restart Nagios Core Button.
Click the Apply Configuration link and click the "Apply Configuration" button after ALL of the errors are resolved.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked