PDA

View Full Version : if statement on triggers


n8wood
20-12-2004, 23:04
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
21-12-2004, 12:39
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.