[Nut-upsuser] Megatec driver floods logs #2 & mail notifications
Arjen de Korte
nut+users at de-korte.org
Mon Dec 28 21:02:31 UTC 2009
Citeren "Yury V. Zaytsev" <yury op shurup.com>:
[...]
> It sends a power back e-mail no matter what, but probably we can live
> with it.
This is trivial to script. Create an empty file somewhere your
CMDSCRIPT has write access to when the 'linedown' timer elapses (ie,
when you send the warning mail). In your 'lineup' event check for the
presence of this file. If it is there, you need to send a message that
the power is back and remove the file. You can improve this above, by
also checking the age of the file (to prevent triggering on stale
files that are accidentally left behind).
Best regards, Arjen
--
Please keep list traffic on the list
More information about the Nut-upsuser
mailing list