Hello NUT Team!

 

I am testing the early shutdowns in NUT 2.6.5-1 package for Windows (Windows
7 x64).

 

My configuration files:

 

upsmon.conf

RUN_AS_USER upsmon

MONITOR [email protected] 1 upsmon pass master

MINSUPPLIES 1

SHUTDOWNCMD "/sbin/shutdown -h +0"

NOTIFYCMD "upssched.exe"

POLLFREQ 5

POLLFREQALERT 5

HOSTSYNC 15

DEADTIME 15

POWERDOWNFLAG "C:\\NUT\\killpower"

NOTIFYMSG COMMOK "Communications with UPS %s established"

NOTIFYMSG COMMBAD "Communications with UPS %s lost"

NOTIFYFLAG COMMOK SYSLOG+EXEC+WALL

NOTIFYFLAG COMMBAD SYSLOG+EXEC+WALL

RBWARNTIME 43200

NOCOMMWARNTIME 300

FINALDELAY 5

 

upssched.conf

CMDSCRIPT "cmd.exe -C C:\\NUT\\1.cmd"

PIPEFN "C:\\NUT\\pipefn.lock"

LOCKFN "C:\\NUT\\lockfn.lock"

AT COMMBAD [email protected] START-TIMER upslost 10

AT COMMOK [email protected] CANCEL-TIMER upslost

 

1.cmd

echo %1 > 1.txt

 

I have found some issues I would like to report.

 

1. NOTIFYCMD parameter is not specified

NUT doesn't start UPSSCHED tool (as I remember, Linux version do it by
default).

 

2. PIPEFN parameter is invalid (its value is a file in non-existed
directory)

UPSMON logs an error:

  25.222443     pollups: [email protected]

  25.229443     get_var: [email protected] / status

  25.238444     Poll UPS [[email protected]] failed - Data stale

  25.248444     Current power value: 1

  25.254444     Minimum power value: 1

Failed to connect to parent and failed to create parent: No error [The
system cannot find the path specified. ]

 

There is no proper record in Event Viewer. 2.6.0-1 version writes different
warnings and errors there. They helps to understand what is wrong.

That is quite difficult now because of total silence.

 

3. All parameters are valid

Two instances of UPSSCHED.EXE are starting (why two?) and they are not
stopping (I was waiting about 5 minutes). CMDSCRIPT is not executed, I
cannot find its activity.

Moreover, these processes are not stopped when Network UPS Tools service is
stopped.

 

UPSMON outputs a lot of strings like "read confirmation failed, trying
again", "addchar: discarding invalid character (0x00)!"

 

  40.276304     pollups: [email protected]

  40.281304     get_var: [email protected] / status

  40.289305     Poll UPS [[email protected]] failed - Data stale

  40.298305     Current power value: 1

  40.303305     Minimum power value: 1

read confirmation failed, trying again

read confirmation got []

read confirmation failed, trying again

  45.307592     pollups: [email protected]

  45.312592     get_var: [email protected] / status

  45.319592     Poll UPS [[email protected]] failed - Data stale

  45.328593     Current power value: 1

  45.333593     Minimum power value: 1

read confirmation failed, trying again

read confirmation failed, trying again

read confirmation failed, trying again

read confirmation got []

Timer daemon started

addchar: discarding invalid character (0x00)!

addchar: discarding invalid character (0x00)!

 

Sometimes I see the strings with garbage inside, like repeated using of
released memory.

 

Thanks,

Denis

 

_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to