Ad Widget

Collapse

A way to return a value from an Action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • twebb
    Junior Member
    • May 2015
    • 2

    #1

    A way to return a value from an Action

    Hello,

    I'm rather new to Zabbix in general, but learning quickly. I am aware of the escalation process with Actions in response to Triggers.

    This is what I want to do as an Action sequence:
    • Execute a remote command on the host, for example restarting a service like apache, AND return a value based on success of this step
    • Contact the appropriate people via whatever media necessary based on the return value from the above step


    The reason I want to do it this way is that I do not want to set a hard-coded time limit on the first action (for example, what if I had to restart an entire machine or cluster? I can't know for sure how long that will take). I'd rather the first action return success/fail, which progresses to the second action on failure.

    Is this functionality built into Zabbix and I'm just having trouble finding it, or is there perhaps another plugin of sorts that someone else has created that does this?
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    at the moment it is not possible..
    Zabbix does not check if a command has been executed successfully.


    take alook at this, and vote for it, and maybe add some comments
    Debian-User

    Sorry for my bad english

    Comment

    • twebb
      Junior Member
      • May 2015
      • 2

      #3
      I appreciate the response, thanks

      I might spend some time working on this problem so perhaps I can contribute to zabbix if I find a solution...

      Comment

      Working...