Ad Widget

Collapse

if statement on triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • n8wood
    Junior Member
    • Nov 2004
    • 9

    #1

    if statement on triggers

    Hi, is there anyway to perform an if statement on trigger expressions? What I'd like to do is send out emails that say: "Server is DOWN" (instead of status =2) and "Server is UP" (instead of status = 0).

    the expression would look something like this:
    if {server:status.last(0)}=2 then "DOWN"
    if {server:status.last(0)}=0 then "UP"


    Can this be done in 1.0?
  • obstler
    Member
    • Oct 2004
    • 30

    #2
    I strongly support this, as I just added a bunch of triggers and email alerts for hosts that are down, and would have liked that much more than having to read 0 or 1 for the host status.

    I don't think it is implemented yet, but it's a great item for the wishlist.

    Comment

    Working...