[Nut-upsuser] NOTIFYCMD doesn't work from Windows service

Dmitry Ogorodnikov dmitry.b.ogorodnikov at gmail.com
Wed Apr 11 04:06:24 UTC 2012


Hello dear all,

I try to use NUT for windows (not WinNUT), and stuck with launching NOTIFYCMD.
On any event marked as SYSLOG+WALL+EXEC syslog entry appears, popup
window appears, but NOTIFYCMD script doesn't run.
If I run upsmon.exe in cmd (i. e. not as a service) everything works fine.

Here is my upsmon.conf:

MONITOR central at 10.35.0.180 1 user password slave
MINSUPPLIES 1
SHUTDOWNCMD "C:\\NUT\\shutdown.bat"
NOTIFYCMD "C:\\NUT\\shutdown.bat"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG "C:\\killpower"
NOTIFYMSG ONLINE        ONLINE
NOTIFYMSG ONBATT        ONBATT
NOTIFYMSG LOWBATT       LOWBATT
NOTIFYMSG FSD           FSD
NOTIFYFLAG ONLINE       SYSLOG+WALL+EXEC
NOTIFYFLAG ONBATT       SYSLOG+WALL+EXEC
NOTIFYFLAG LOWBATT      SYSLOG+WALL+EXEC
NOTIFYFLAG FSD          SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5

I also tried
NOTIFYCMD C:\\NUT\\shutdown.bat
NOTIFYCMD "\"C:\\NUT\\shutdown.bat""
with no success.

NUT 2.6.1-1 with replaced upsmon.exe from here: http://fbohe.free.fr/upsmon.exe.
Windows 2003 R2 x64 Rusian.
Master server is Debian Squeeze.

Regards,
Dmitry



More information about the Nut-upsuser mailing list