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

2009-12-30 Thread Yury V. Zaytsev
On Tue, 2009-12-29 at 15:20 +0100, Arjen de Korte wrote: Citeren Yury V. Zaytsev y...@shurup.com: Please keep the list traffic on the list so that the others can benefit. But please note that the messages are in English. If it is in Russian, feel free to take it off-list. Or rather use

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

2009-12-29 Thread Yury V. Zaytsev
Hi! Please keep the list traffic on the list so that the others can benefit. 1) Be sure that an MTA is installed and working: mail -s Test y...@mail.com EOF Test! EOF 2) Be sure that the script has correct permissions: chmod ugo+x /mnt/data/scripts/ups-notifier 3) Be sure that it actually

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

2009-12-29 Thread Arjen de Korte
Citeren Yury V. Zaytsev y...@shurup.com: Please keep the list traffic on the list so that the others can benefit. But please note that the messages are in English. If it is in Russian, feel free to take it off-list. Best regards, Arjen -- Please keep list traffic on the list

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

2009-12-28 Thread Yury V. Zaytsev
Hi there! I'm a n00b NUT user trying to get it running on RHEL5 and actually do something useful for me. Few questions: 1) I want it to notify me by email on power loss and power back events. I can't find any sample scripts for this purpose... Where shall I look for them? 2) So far, I've

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

2009-12-28 Thread Yury V. Zaytsev
Hi! On Mon, 2009-12-28 at 08:26 -0500, Justin Piszcz wrote: For no. 1: I'm actually trying to make use of upssched to avoid notifications for short outages like ~ 1 minute or so. So far I've added two lines: # The timers, here 60 sec after the ONBATT (ups on battery) event AT ONBATT *

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

2009-12-28 Thread Yury V. Zaytsev
Hi! On Mon, 2009-12-28 at 20:54 +0100, Arjen de Korte wrote: I don't understand what you mean with first and second goal. Please make a timeline with events and what you want to happen at each point in time. OK, I will try to put it the other way around :-) (let's assume that the UPS

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

2009-12-28 Thread Arjen de Korte
Citeren Yury V. Zaytsev y...@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

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

2009-12-28 Thread Yury V. Zaytsev
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