Error: 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.
Post Reply
adamsj
Posts: 12
Joined: Wed May 15, 2024 4:52 pm

Error: Service has no hosts and/or service_description

Post by adamsj »

Hi,

So here's an odd one. My boss was trying to apply a configuration to silence some alerts, and he got this error:

Code: Select all

<div>Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/aspace4.net.ualr.edu.cfg', starting on line 108)</div>
What's particularly odd about that is that the file in question is only eighty-four lines long.

I created this entry a couple of days ago, and it looks good to me when I inspect it. What gives?

Thanks,

John A
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: Error: Service has no hosts and/or service_description

Post by kg2857 »

You probably want to look in the cfg file for the things the error message says are missing.
adamsj
Posts: 12
Joined: Wed May 15, 2024 4:52 pm

Re: Error: Service has no hosts and/or service_description

Post by adamsj »

Every entry in that file has both a host and a service description--thus my confusion.
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: Error: Service has no hosts and/or service_description

Post by kg2857 »

The error message mentions a line number in the cfg file. What do you see at or around that line?
I'd probably grep the service name, host, and description from the file since I imagine there are many services in the file.
Post Reply