[Nut-upsuser] Megatec driver floods logs #2 & mail notifications

Yury V. Zaytsev yury at shurup.com
Mon Dec 28 21:38:05 UTC 2009


On Mon, 2009-12-28 at 22:02 +0100, Arjen de Korte wrote:

> 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).

Hi!

Thanks for the ideas! Please find my implementation attached. Hopefully
it will be of use to someone... at least now it's googleable :-)
 
-- 
Sincerely yours,
Yury V. Zaytsev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ups-notifier
Type: application/x-shellscript
Size: 1751 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20091228/e7f50977/attachment.bin>


More information about the Nut-upsuser mailing list