Setting Up Automated Warning Mails/SMS/Sound



Automated warnings
The Zeus Load Balancer has the ability to contact you in case of severe problems with the clustering. If a frontend machine fails, or if a website becomes unavailable due to backend webserver failures, then the Balancer can be configured to:

By default, the Balancer will perform none of these actions. However, sample scripts are provided which let you configure the Balancer to enable any of these actions.

Setting up the warnings
On a machine with a frontend Load Balancer installed, go to the directory $ZEUSHOME/balancer/bin. In here are all the scripts required to enable the mail/sms/sound features. The default scripts are alert-by-mail, alert-by-sms and alert-by-sound respectively.

The script 'notify' is the actual program invoked when an event occurs on the Zeus Load Balancer. By default, this program does nothing. However, if you copy one of the other scripts over in its place, then that function will get used instead.

Scripts provided

The scripts will either be run as root (in the case of messages about frontend machines failing), or as the user which the frontend runs under, in the case of backend machines failing. Ensure that your scripts will function correctly in both of these cases!

Events
There are three events that trigger warning: