Hi Michael,

so what do you mean with ignore? If it's showing OK, you can ignore the
host, don't you? If you don't use a check_command, what should be shown
in the Web-interface? Or do you want the hosts be hidden from the
Webinterface? How do you want to hide them? If from the GUI, how would
you reenable the host? Or do you want to "disable" the hosts(s)
programmatically? Would be a reload of Icinga2 a problem then?

Though I don't really understand, what you are trying to achieve, you
may play around with parameter "check_period" and create a timeperiod
"never".

brgds
Kai


>>> On 18.10.2016 at 03:17, Michael Martinez <mwt...@gmail.com> wrote:
> Hi Kai,
> 
> Yes, I understand that. But a dummy check that always returns OK is
> misleading. The hosts themselves may be Up, may be Down, but for a
> particular subset of hosts we don't want to know either way. We
would
> rather ignore them.
> 
> On Fri, Oct 7, 2016 at 5:04 AM, Kai Nothdurft
<kai.nothdu...@rantzau.de> 
> wrote:
>> Hi Michael,
>>
>> I know, you wrote, that you don't want to assign a dummy check -
but
>> why not? You could use the built-in "dummy"-check for this:
>>
>>
>> object Host "unchecked-host" {
>>   import "generic-host"
>>
>>   check_command         = "dummy"
>>
>>   vars.dummy_state      = 0
>>   vars.dummy_text       = "This host will never be checked and
shows
>> always OK"
>>
>> }
>>
>> hth
>> Kai>>> On 06.10.2016 at 19:18, Michael Martinez <mwt...@gmail.com>
>> wrote:
>>> Hi Hasan, thanks for your reply. I should be more clear: I am
>> actually
>>> looking to ignore the Host check itself. What you've written works
>> for
>>> service checks only.
>>>
>>> On Wed, Oct 5, 2016 at 10:26 AM, hasan akgöz
<hasanak...@gmail.com>
>> wrote:
>>>> Hello Michael,
>>>>
>>>> if you hostname or ip adress whatever is static you can use
ignore
>> keyword
>>>> follow like ;
>>>>
>>>> apply Service "Service Name" {
>>>>   ...
>>>>
>>>>   assign where match("web*.example.org", host.name)
>>>>   ignore where host.name
>>>> }
>>>>
>>>>
>>>>
>>>> 2016-10-05 19:51 GMT+03:00 Michael Martinez <mwt...@gmail.com>:
>>>>>
>>>>> we need to exclude certain hosts based on AWS
>>>>> attributes (VpcId
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> icinga-users mailing list
>>>> icinga-users@lists.icinga.org 
>>>> https://lists.icinga.org/mailman/listinfo/icinga-users 
>>>>
>>>
>>>
>>>
>>> --
>>> ---
>>> Michael Martinez
>>> http://www.michael--martinez.com 
>>> _______________________________________________
>>> icinga-users mailing list
>>> icinga-users@lists.icinga.org 
>>> https://lists.icinga.org/mailman/listinfo/icinga-users 
>> _______________________________________________
>> icinga-users mailing list
>> icinga-users@lists.icinga.org 
>> https://lists.icinga.org/mailman/listinfo/icinga-users 
> 
> 
> 
> -- 
> ---
> Michael Martinez
> http://www.michael--martinez.com 
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.icinga.org 
> https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to