[Nut-upsuser] NUT UPS Slave Not Shutting Down
Roger Price
roger at rogerprice.org
Fri Aug 5 13:01:59 UTC 2016
On Fri, 5 Aug 2016, Neetish Bhat wrote:
Hi Neetish, I'm trying to understand your setup.
> My configuration in Master are
> ...
> /usr/etc/upsmon.conf
> SHUTDOWNCMD "/sbin/shutdown -h +0"
> ...
> /usr/etc/upssched.conf
>
> CMDSCRIPT /usr/etc/ups_cmd_file
> ...
> AT ONBATT * START-TIMER onbatt 120
> AT ONLINE * CANCEL-TIMER onbatt
I'm assuming that in the master, script /usr/etc/ups_cmd_file
calls "upsmon -c fsd" to shutdown the master using command "/sbin/shutdowm
-h + 0". Is this correct?
In the slave
> /usr/etc/upsmon.conf
> ...
> SHUTDOWNCMD "poweroff"
> NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
> NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
> NOTIFYCMD "/usr/bin/upssched"
assumes that there is a file /usr/etc/upssched.conf which contains
something like
>
> CMDSCRIPT /usr/etc/ups_cmd_file
> ...
> AT ONBATT * START-TIMER onbatt 60
> AT ONLINE * CANCEL-TIMER onbatt
and a script ups_cmd_file which calls "upsmon -c fsd". Is this correct?
Does the command "ups_cmd_file onbatt" on the slave shutdown the slave?
Roger
More information about the Nut-upsuser
mailing list