Block Inherited Service Checks On A Host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
disarm76
Posts: 13
Joined: Wed Nov 05, 2014 1:18 pm

Block Inherited Service Checks On A Host

Post by disarm76 »

Hi, I am trying to exclude a host from a service. Only hostgroups are assigned to this service. I saw a solution here: http://support.nagios.com/forum/viewtop ... =16&t=9503.

It look good but it doesn't work. I get:
Error: Invalid service object directive 'hostname'. < not the real hostname, obviously
Error: Could not add object property in file '/usr/local/nagios/etc/services/Disk_Space_C.cfg' on line 22.

Is it because this service has more than one hostgroup? Thanks!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Block Inherited Service Checks On A Host

Post by lmiltchev »

Can you show us the service definition?
Be sure to check out our Knowledgebase for helpful articles and solutions!
disarm76
Posts: 13
Joined: Wed Nov 05, 2014 1:18 pm

Re: Block Inherited Service Checks On A Host

Post by disarm76 »

Thanks lmiltchev but I got it. I was not using 'host_name' literally. Thanks.
Locked