[Nut-upsuser] Timer Daemon doesn't start

Stefan Kuhn kuhn at papier.tu-darmstadt.de
Tue May 15 08:23:52 UTC 2012


Hey,

I have the problem that my timer daemon doesn't start. I checked my configuration more than two times and I don't find the failure. Maybe someone can help me and tell me where the failure could be.

--- syslog ---
May 13 21:50:34 s-monitor1 upsmon[1674]: UPS usv3 at localhost on battery
May 13 21:50:34 s-monitor1 upssched[855]: Executing command: ONBATT
May 13 21:50:34 s-monitor1 upssched[855]: exec_cmd(/etc/nut/upssched-cmd ONBATT) returned 126
May 13 21:51:04 s-monitor1 upsmon[1674]: UPS usv1 at localhost on battery
May 13 21:51:04 s-monitor1 upsmon[1674]: UPS usv2 at localhost on battery
May 13 21:51:04 s-monitor1 upssched[1173]: Executing command: ONBATT
May 13 21:51:04 s-monitor1 upssched[1174]: Executing command: ONBATT
May 13 21:51:04 s-monitor1 upssched[1173]: exec_cmd(/etc/nut/upssched-cmd ONBATT) returned 126
May 13 21:51:04 s-monitor1 upssched[1174]: exec_cmd(/etc/nut/upssched-cmd ONBATT) returned 126

As you can see, there is no information about the starting of any timer in the syslog.


--- upssched.conf ---
AT ONBATT usv1 START-TIMER VERZ2 120
AT ONLINE usv1 CANCEL-TIMER VERZ2

AT ONBATT usv1 START-TIMER VERZ5 300
AT ONLINE usv1 CANCEL-TIMER VERZ5

AT ONBATT usv1 START-TIMER VERZ8 480
AT ONLINE usv1 CANCEL-TIMER VERZ8

AT ONBATT * EXECUTE ONBATT
AT ONLINE * EXECUTE ONLINE
AT COMMOK * EXECUTE COMMOK
AT COMMBAD * EXECUTE COMMBAD
AT FSD * EXECUTE FSD
AT LOWBATT * EXECUTE LOWBATT
AT NOCOMM * EXECUTE NOCOMM
AT REPLBATT * EXECUTE REPLBATT
AT SHUTDOWN * EXECUTE SHUTDOWN

Here are the 3 timers which should be started (VERZ2, VERZ5, VERZ8).


--- upssched-cmd ---
[...]
case $1 in
COMMBAD)    notify $PAGER $1 "UPS communications lost" ;;
COMMOK)     notify $PAGER $1 "UPS communications established" ;;
FSD)        notify $EMAIL $1 "UPS being shut down by master" ;;
NOCOMM)     notify $PAGER $1 "UPS unavailable" ;;
ONBATT)     notify $PAGER $1 "UPS on battery power";;
ONLINE)     notify $PAGER $1 "UPS on line power" ;;
REPLBATT)   notify $EMAIL $1 "UPS battery needs replacement" ;;
SHUTDOWN)   notify $EMAIL $1 "NUT shutting system down" ;;
VERZ2)      notify $EMAIL $1 "USV 2 Minuten auf Batterie -> Shutdown ";
            echo "USV 2 Minuten auf Batterie -> Shutdown"
[...]
;;
VERZ5)      notify $EMAIL $1 "USV 5 Minuten auf Batterie -> Shutdown ";
[...]
;;
VERZ8)      notify $EMAIL $1 "USV 8 Minuten auf Batterie -> Shutdown ";
[...]
;;
LOWBATT)   notify $EMAIL $1 "USV wird leer -> Shutdown des Monitor Servers";
[...]
;;
Esac


I hope I'm giving you all necessary information and you can help me.

Greetings and Thanks,
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120515/010401de/attachment.html>


More information about the Nut-upsuser mailing list