Ad Widget

Collapse

Add condition that Agent ping didnt fail before ACTIONS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kquinn
    Junior Member
    • Oct 2012
    • 2

    #1

    Add condition that Agent ping didnt fail before ACTIONS

    Hi,

    We currently have several actions to restart services under certain conditions.

    While this works great, I'd like to add an additional condition that the server must actually be up before doing any actions.

    What happens, is if a server goes down, or there is a network issue, we receive a dozen service restart attempt alerts from zabbix via email, which we simply have to close.

    I can't seem to figure out how to add a condition that the server is up / agent.ping did not fail.

    Make sense?

    --
    Thanks
    Kevin
  • bradh
    Junior Member
    • Aug 2012
    • 14

    #2
    How about adding the condition to the trigger expression instead of action?

    Like:

    {server:agent.ping.last(0)}=1 & {server:service_state[Spooler].min(5m)}>0

    Comment

    • kquinn
      Junior Member
      • Oct 2012
      • 2

      #3
      bradh,

      Thanks for your reply. I'll give this a shot.

      Comment

      Working...