[Nut-upsdev] Liebert ESP II driver

Arjen de Korte nut+devel at de-korte.org
Mon Jul 19 11:21:47 UTC 2010


Citeren Robert Jobbagy <jobbagy.robert op gmail.com>:

> I put  dstate_setinfo("battery.runtime.low","%d",3500); in the
> upsdrv_initinfo function.

This will hardcode the 'battery.runtime.low' value that is reported to  
the upsd server and upsmon clients. I doubt that this is what you  
meant to do.

> I tought battery.runtime.low tell to NUT when send LOW BATTERY EVENT and
> after this will be happend
>
> - generates a NOTIFY_SHUTDOWN event
>    - waits FINALDELAY seconds - typically 5
>    - creates the POWERDOWNFLAG file - usually /etc/killpower
>    - calls the SHUTDOWNCMD

No. The dstate_setinfo() and dstate_getinfo() functions are only used  
to change or read back the values that are reported to the uspd  
server. The upsmon client will only look at the 'ups.status' that is  
reported. If you want to shutdown based on the runtime remaining, your  
UPS must support both shutting down based on remaining runtime *and*  
allow you to override the build in value. You should never need to  
directly set 'battery.runtime.low', since this must be the actual  
value reported by the UPS.

Best regards, Arjen
-- 
Please keep list traffic on the list




More information about the Nut-upsdev mailing list