Ad Widget

Collapse

"Improving" {HOSTNAME} is unreachable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frater
    Senior Member
    • Oct 2010
    • 340

    #1

    "Improving" {HOSTNAME} is unreachable

    In the Windows template there's this trigger ({Template_Windows:status.last(0)}=2) which will show you if the Host is unavailable.
    In this same template I also do a ping check to its Internet connection (icmp with an interval of 15 seconds).

    When the Internet is down you will see 2 alerts.
    1 for the Internet connection and one for the host. Of course I know I can disregard the status.last, but I would like to bring this logic into Zabbix itself.

    I Surpress this trigger when I can't ping the site by "anding" it with "icmp.max(30)=0"

    Code:
    {Template_Windows:status.last(0)}=2 & {Template_Windows:icmp.max(30)}=0
    This is AFAIK a good method, but because this is inside a template I have the risk of not getting an alert at all because I (or someone else) disabled the "icmp" item for that host for some reason (for instance the firewall can't be changed to respond to pings). The trigger will get disabled then.....

    So I want to have a(nother) trigger that will go off in case the simple check is disabled. I hoped/expected a function like "item.disabled" which of course doesn't disable the trigger when the item is disabled but creates a value...

    Code:
    {Template_Windows:status.last(0)}=2 & {Template_Windows:icmp.disabled(0)}=1
    Does such a function exist or anyone knows a workaround for this scenario?

    For the time being I solved it like this.
    In the template I create the normal trigger
    Code:
    {Template_Windows:status.last(0)}=2
    which is disabled by default. If someone disables the simple check "icmp" in the host he should enable that trigger.
    Last edited by frater; 15-07-2011, 15:42.
    Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP
Working...