LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Email alerts for ldirectord (patch in URL)

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Email alerts for ldirectord (patch in URL)
From: "Peter Mueller" <pmueller@xxxxxxxxxxxx>
Date: Mon, 1 Aug 2005 15:56:22 -0700
Hello Horms,

Please consider adding this to CVS.  It is diffed against CVS obtained from
today.  The functionality added is to send an email when a server goes in and
out of service.  You must change the two email address variables to make it
work.  Currently they are:
+$ALERTEMAILOUTSERVICE = "outofservicemeailaddresshere@localhost";
+$ALERTEMAILRESTORESERVICE = "restoreservicemeailaddresshere@localhost";

http://world.anarchy.com/~peter/lvs/ldirectord.cvs.patch

Depending on the server the 'restore' service is less useful because a
ldirectord reload, such as kill -HUP ldirectord, will send out a restore for
each server.  Also, I am not certain what a solution would be for a user that
does not want email.  Comment out the two ld_alert instance calls by default?
Or maybe change the default email to root@localhost?

Kind regards,

Peter Mueller
Operations Engineer
(408)235-1700 x125

Find travel deals from dozens of sites - with one search
Try SideStep - The traveler's search engine
www.sidestep.com 

<Prev in Thread] Current Thread [Next in Thread>