Ad Widget

Collapse

Zabbix action based on 2 triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahahum
    Member
    • Jan 2009
    • 79

    #1

    Zabbix action based on 2 triggers

    I am trying to setup an action that runs on a host when 2 specific triggers are active as problems on that 1 host.

    I think I have it setup correctly, but the action doesn't seem to be firing.

    Here is my Action config:
    Conditions
    (A) and (B and C)
    A - Trigger value = PROBLEM
    B - Trigger = Template_Name:Trigger
    C - Trigger = Template_Name:Trigger

    Operations
    Step 1 Run remote commands on current host - Immediately
    Target list: current host
    Execute on: Zabbix agent
    Commands: scriptpath\file

    EnableRemoteCommands=1 is already in my conf file - I have other remote commands working properly on this host and others. I think the problem is in the conditions - they don't seem to be matching correctly.

    Does anyone have something similar setup - any tips?

    Thanks!
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    The item(s) are not set to active agent, right? Can't use remote commands with Zabbix agent (Active).

    If that's not the problem, have you checked zabbix_server.log for errors? Might need to set debug level to 4 (restart Zabbix server process), manually trip your trigger, check logs. Put debug back to 3 and restart Zabbix server process again. Same applies to your zabbix_agentd.log on your host.

    Comment

    • ahahum
      Member
      • Jan 2009
      • 79

      #3
      No, they weren't activate agents.

      I ended up going a different route to solve my problem. I created a new trigger that is based on the status of those 2 other triggers I was trying to act on.

      Comment

      Working...