Too much mails on gateway problems
-
2.1-BETA1 (amd64)
built on Fri Feb 1 01:33:53 EST 2013If I restart an openvpn service i will get 19 mails saying:
Gateways status could not be determined, considering all as up/active. (Group: WAN)
Gateways status could not be determined, considering all as up/active. (Group: Internet)The OVPN gateway is not in a group.
-
It still checks the status of your other gateways when an interface goes up/down.
Check your gateway groups status and make sure they are actually online like they should be.
-
They are all up.
With 2.0.2 I will only get one mail per group and not 9+.
And no mail if I restart OVPN. -
Looking at the code, the only way it lands on that error is if all gateways are down or in some otherwise unknown state (meaning they are not 'online') at the time of the check.
It shows up more on 2.1 because the gateway groups check is performed a lot more now that gateway groups can be used in places like OpenVPN, IPsec, DynDNS, etc.
Though since that message isn't all that meaningful and it's rather spammy, I'll disable it from e-mail notifications for now.
-
Great thanks, I would get 4 of them on every nightly pppoe IP change.
If this question needs another thread, I'm happy to create one: Shouldn't one be getting a mail if a gateway returns from down state? I only get a mail if a gateway is own but never when it comes up again and everything is OK. -
No there is no notify event when a gateway comes back up.
-
Perhaps it's posible to remember last state of interface/gateway and send only email if state differs.
2nd perhaps: make it possible to mark an interface/gateway to send email on change.