Ad Widget

Collapse

Take an action through a trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nascimento.rp
    Junior Member
    • Sep 2005
    • 7

    #1

    Take an action through a trigger

    Hi ALL,

    I'm a newbie in Zabbix and I have a doubt.

    It's possible to take an action through the result of a trigger. By example, I check the connection port with the Oracle by check_port[ip,port], if the trigger return 1, can I run a script based on it?

    Thanks

    Nascimento
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Yes and no. Yes, you can have use a script to make certain things happen, however, until beta1, you are fairly limited on what you can actually pass to the script as arguments. Scripts are a type of media setting in Zabbix. When you create a trigger, you can associate an action to it, the common ones are email a user / group of users or execute an external script. IIRC, there is only a single argument that you can pass in alpha12 (hostname), and that argment gets passed at the end of the command line.
    Unofficial Zabbix Developer

    Comment

    • nascimento.rp
      Junior Member
      • Sep 2005
      • 7

      #3
      JW,

      Thanks! I think that I'll achieve what I need.



      Thanks and regards,
      Nascimento

      Comment

      • Balaji Krishnamoorthy
        Junior Member
        • Apr 2007
        • 11

        #4
        Nascimento

        Can you help me on this if it worked for you.

        I have several hosts and when a trigger is on I like to active the external script only on the host which triggered it.

        I am on zabbix 1.1.7 .

        Thx
        Balaji.k

        Comment

        Working...