Ad Widget

Collapse

only run an item if based on another item?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ciderMight
    Junior Member
    • Feb 2024
    • 5

    #1

    only run an item if based on another item?

    The scenario...

    I have 3 actions that check the status of different ports of a camera that run in parallel.

    I want these 3 actions to only run if a ping action is successful. If i cannot ping the device, I don't want the 3 action to run.

    Hop someone can assist?

    Seems like a basic scenario?
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    I would assume you have item to check ping to a camera? If so, you can modify trigger expression with something like
    Code:
    ... and last(/host/ping)=1
    in which case alert should be fired only if ping is successfull but other check fails. Downside: if that other param gets checked before fresh ping results showing camera down arrive - you might get false-positive, in which case you would also need to modify your original criteria to delay it a bit to ensure fresh ping data is collected.

    Another option is to review the trigger dependency functionality. It might still have downside mentioned above.

    All in all, without exact details of your current Zabbix side setup it's hard to give exact advise, but those two options above should be the directions to explore.

    Comment

    Working...