[lvs-users] ldirectord email features

anthony at duck.com anthony at duck.com
Fri Nov 6 21:33:38 GMT 2009

Since I was the person that contributed the patch for the email alert code back in 2006, I could make another contribution attempt without making things too complex.

1. i think that is a good idea. the option should probably be on a per virtual service basis.  before it sends the email, it would just compare the current time to whats defined in the exception period or alert period depending on how its implemented

2. with #1 implemented, you would just make sure the specific service does not have any alert exceptions

3. if using multiple configuration files/ldirectord processes, you would then probably need to have something like a control file that is accessed (read/write) by any ldirectord process.  That means adding a lock file and checking.  I am not sure if there would be a better way to implement it.
There is the emailalertfreq option that limits how many times an email is sent on a per service basis.  You can set that to a higher value to limit the amount of emails you get per service when its down.


Robinson, Eric wrote:
> I'm a fan of ldirectord so I am proposing a possible feature. ldirectord
> sends me an email alert when services go down, which sometimes works too
> well. A few months ago I was replacing some switches and make a spanning
> tree mistake which caused ldirectord to be unable to reach any of my
> realservers. It took me a while to find the problem, during which I made
> several changes to the network infrastructure. As a result, I got about
> 2500 text messages on my cell phone from ldirectord. More recently, I
> enabled a script that restarts certain services every night, so now I
> get 250 text messages on my cell every night!
> I wish there was a way to tell ldirectord stuff like this:
> 1. Don't send alerts during certain time windows
> 2. Except always send alerts for certain services or hosts, even during
> excluded time windows
> 3. If you find that you are sending a lot of alerts in a short time
> frame (say, more than X per second), wait Y seconds and send an email
> digest, not separate emails for each alert
> That's my Christmas wish list!
> --
> Eric Robinson
> Disclaimer - November 5, 2009 
> This email and any files transmitted with it are confidential and intended solely for LinuxVirtualServer.org users mailing list.. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physician Select Management and Physician's Managed Care. Warning: Although Physician Select Management and Physician's Managed Care have taken reasonable precautions to ensure no viruses are present in this email, the companies cannot accept responsibility for any loss or damage arising from the use of this email or attachments. 
> This disclaimer was added by Policy Patrol: http://www.policypatrol.com/
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
> LinuxVirtualServer.org mailing list - lvs-users at LinuxVirtualServer.org
> Send requests to lvs-users-request at LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users

More information about the lvs-users mailing list