PDA

View Full Version : Multiple Host Triggers


moranp
27-01-2005, 08:25
Hi,

Is there a way to set triggers for multiple servers, for instance am running 2 webservers in active active mode, now if one fails thats a warning. However I wish to be able to check both webservers are not running to send a major alert.

Is this possible and if so has anyone got a example I may use ?

Alexei
27-01-2005, 08:59
Sure:

1. One of WEB servers is down

({server1.http.last(0)}=0)|({server2.http.last(0)} =0)

or

(({server1.http.last(0)}=0)&({server2.http.last(0)}=1))|(({server2.http.last(0 )}=0)&({server1.http.last(0)}=1))

2. Both server are down

({server1.http.last(0)}=0)&({server2.http.last(0)}=0)

moranp
27-01-2005, 09:04
Fantastic, just what I wanted