Ad Widget

Collapse

suppress a trigger if ping is down on the host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ssks393
    Junior Member
    • Feb 2023
    • 28

    #1

    suppress a trigger if ping is down on the host

    Hello,
    I use Windows by Zabbix agent active template for monitoring Windows Hosts. I need to add a condition to the triggers so that they would only trigger if icmp ping is down. I use an expression that is showed below, but when updating the trigger I receive a message. Can somebody advise how to solve this?
    • Trigger "Windows: Zabbix agent is not available when ping successful" belongs to templates with different linkages.

    nodata(/Windows by Zabbix agent active Current/agent.ping,{$AGENT.NODATA_TIMEOUT})=1
    and max(/ICMP Ping/icmpping,#3)=1​

    ​​
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    I don't think the ICMP Ping template is linked to the Windows by Zabbix agent template by default, have you linked it? Do you have both linked to the host? Are you trying to add the trigger to a template or to the host?

    I think you could test this by cloning Windows by Zabbix Agent to "test", then link ICMP Ping to that new template, then create the trigger in the "test" template.

    Comment

    • ssks393
      Junior Member
      • Feb 2023
      • 28

      #3
      Hi,
      I have tried linking, but now I receive a message
      • Invalid parameter "/1/expression": incorrect expression starting from "​".

      Comment

      • ssks393
        Junior Member
        • Feb 2023
        • 28

        #4
        Found a solution. Copied the ping item to my windows template. and for the expression I use ​
        nodata(/Windows by Zabbix agent active Current/agent.ping,{$AGENT.NODATA_TIMEOUT})=1
        and max(/Windows by Zabbix agent active Current/icmpping,#3)=1

        Comment

        Working...