From what I read in the docs keepalived is supposed to send email notices when its VRRP status changes between master and backup. Yet I see no indication that it ever tries to send the email. Sendmail and keepalived don't log anything. I increased keepalived's logging verbosity and I saw it registered the email settings from global_defs. Yet when the status switched it didn't log an attempt to send an email (not that it necessarily would), nor an error. Sendmail did not log a connection attempt.
On all the servers I have keepalived running, I receive the mails just fine. Mind you elaborate on your issue and share a bit of your config maybe please ?
Created attachment 317922 [details] Keepalived configuration sample This is a typical config from our systems with all sensitive info replaced with generic info.
We have over a half dozen servers and none of them attempt to send emails when the state changes. So we added a "notify" script to send the emails. We also change the conf.d/keepalived to contain: opts="--vrrp" To run keepalived in VRRP only mode. We only use the VRRP facility.
Created attachment 317926 [details] mail relaying keepalived config You may be missing the smtp_alert directive in the vrrp_instance declaration (see my sample conf). This is a sample config of mine (I use postfix as a local MTA but yours should work anyway)
My apologies. I can't tell you how many times I reviewed the man pages and the PDF docs I had printed and missed that directive. Thanks for clearing this up. I'll have to try it out later but I assume it will work.
(In reply to comment #5) > My apologies. I can't tell you how many times I reviewed the man pages and > the PDF docs I had printed and missed that directive. Thanks for clearing > this up. I'll have to try it out later but I assume it will work. It happens mate, I hope this solves your problem, please keep this bug updated about your results so I can close it when you're done.
Almost-two-weeks timeout, closing. Feel free to re-open if needed, cheers.
(In reply to comment #7) > Almost-two-weeks timeout, closing. Feel free to re-open if needed, cheers. I was able to put the "smtp_alert" in our configs late last week. Yes the notices are getting sent. Sorry for wasting your time. Thanks for your help.
No problemo, it's cool to know it helped :) cheers.