Hi Tobias
I did it!
apply Service "ping4" {
import "generic-service"
check_command = "ping4"
assign where host.address *&& host.vars.ping == "yes"*
}
apply Service "ping6" {
import "generic-service"
check_command = "ping6"
assign where host.address6 *&& host.vars.ping == "yes"*
}
In the host-Object I set the variable ' vars.ping = "yes" ' when I want
to have a ping-test!
No errors are seen now :-)
Kind regards
Daniel
Am 30.04.15 um 15:37 schrieb Daniel Bossert:
> Hi Tobias
>
> Yes, that could be. But how can I disable this check for a specific host?
> In the services.conf-file I can see "assign where host.address"
>
> Is there a option to deactivate this ping-test in the object Host
> definition?
>
> Kind regards
> Daniel
>
>
>
> Am 30.04.15 um 15:31 schrieb Tobias von der Krone:
>> Hi,
>>
>> maybe you mix up the host alive check (check_command in the Host
>> object) and the PING service assigned to a host?!
>>
>> Regards
>> Tobias
>>
>> On 2015-04-30 07:04, Daniel Bossert wrote:
>>> Hi all
>>>
>>> I'm new to icinga2 and I have problem to set up my own host (It's a very
>>> new concept).
>>>
>>> I added such a file:
>>>
>>> object Host "host1" {
>>>
>>> import "generic-host"
>>>
>>> display_name = "Host 1"
>>>
>>> address = "a.b.c.d"
>>>
>>> check_command = "dummy"
>>>
>>> }
>>>
>>> object Host "host2" {
>>>
>>> import "generic-host"
>>>
>>> display_name = "Host 2"
>>>
>>> address = "d.c.b.a"
>>>
>>> check_command = "dummy"
>>>
>>> }
>>>
>>> apply Service "httpverw" {
>>>
>>> import "generic-service"
>>>
>>> check_command = "http"
>>>
>>> assign where host.name == "Host 1"
>>>
>>> }
--
PGP Key: 0x3C54FCDF
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users