Page 1 of 1

Block Inherited Service Checks On A Host

Posted: Fri Nov 21, 2014 9:38 am
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!

Re: Block Inherited Service Checks On A Host

Posted: Fri Nov 21, 2014 2:43 pm
by lmiltchev
Can you show us the service definition?

Re: Block Inherited Service Checks On A Host

Posted: Fri Nov 21, 2014 4:35 pm
by disarm76
Thanks lmiltchev but I got it. I was not using 'host_name' literally. Thanks.