Hi,
i have several simple-check items & triggers for a template, say:
PING {HOSTNAME} unreachable: {TMPL-Std:icmppingsec.max(375)}=0.0
SMTP {HOSTNAME} unreachable: {TMPL-Std:smtp_perf.max(615)}=0
SSH {HOSTNAME} unreachable: {TMPL-Std:ssh_perf,22.max(615)}=0
...
Now, if a host goes down, all those triggers fire and I get several alerts.
What I want is to only get service (eg. SMTP) alerts if the host is up (PING trigger is OFF)
I tried two different approaches, but didn't get anywhre yet:
Using trigger dependencies
This doesn't seem to work because trigger dependecies can only be defined on other triggers which are ON.
Using action conditions
This doesn't seem to work because action conditions can only
* use fully specified triggers, not generic template PING {HOSTNAME} unreachable triggers
* use trigger values of the current trigger, not some-other-trigger = OFF
Possible solutions would be:
* don't use templates and define every trigger/action for every host
* define an additional trigger PING {HOSTNAME} reachable with inverse conditions and use that for trigger dependencies
Both of these ... well ... lack a certain kind of elegance :-)
Is there any better way?
Thanks!
i have several simple-check items & triggers for a template, say:
PING {HOSTNAME} unreachable: {TMPL-Std:icmppingsec.max(375)}=0.0
SMTP {HOSTNAME} unreachable: {TMPL-Std:smtp_perf.max(615)}=0
SSH {HOSTNAME} unreachable: {TMPL-Std:ssh_perf,22.max(615)}=0
...
Now, if a host goes down, all those triggers fire and I get several alerts.
What I want is to only get service (eg. SMTP) alerts if the host is up (PING trigger is OFF)
I tried two different approaches, but didn't get anywhre yet:
Using trigger dependencies
This doesn't seem to work because trigger dependecies can only be defined on other triggers which are ON.
Using action conditions
This doesn't seem to work because action conditions can only
* use fully specified triggers, not generic template PING {HOSTNAME} unreachable triggers
* use trigger values of the current trigger, not some-other-trigger = OFF
Possible solutions would be:
* don't use templates and define every trigger/action for every host
* define an additional trigger PING {HOSTNAME} reachable with inverse conditions and use that for trigger dependencies
Both of these ... well ... lack a certain kind of elegance :-)
Is there any better way?
Thanks!

Comment