[Nut-upsuser] System with MGE UPS shuts down too early
Georgi D. Sotirov
gdsotirov at gmail.com
Sun Jan 12 10:44:03 GMT 2020
My upssched-cmd script is not modified and having just the following lines:
case $1 in
upsgone)
logger -t upssched-cmd "The UPS has been gone for
awhile"
;;
*)
logger -t upssched-cmd "Unrecognized command: $1"
;;
esac
And thus its the same as the initial version
<https://github.com/networkupstools/nut/blob/7f2965da1f3d0319d6a3cbd78399897ce29b8b10/clients/upssched-cmd>,
so the output is as expected. I see there is a newer version
<https://github.com/networkupstools/nut/blob/master/clients/upssched-cmd>
from 2017-03-22 that handles also onbattwarn and ups-back-on-power, but
it wasn't included in version 2.7.4 of NUT I'm currently using.
Anyway, this is not a problem.
Regards,
--
Georgi
On 11.1.2020 at 17:52, Manuel Wolfshant wrote:
> On January 11, 2020 3:42:15 PM GMT+02:00, Roger Price
> <roger at rogerprice.org> wrote:
> >On Sat, 11 Jan 2020, Georgi D. Sotirov wrote:
> >
> >> Jan 11 11:49:15 sotirov-bg upsmon[2677]: UPS mgeups at localhost on
> >battery
> >> Jan 11 11:49:15 sotirov-bg upssched[29746]: Executing command:
> >ups-on-battery
> >> Jan 11 11:49:15 sotirov-bg upssched-cmd: Unrecognized command:
> >ups-on-battery
> >
> >These lines say that you have something like
> >
> > AT ONBATT mgeups at localhost EXECUTE ups-on-battery
> >
> >declared in file upssched.conf, but script upssched-cmd does not have a
> >case
> >statement option or something similar to catch such a call to
> >upssched-cmd.
> >
>
> That is absolutely true but I've understood that the system worked OK
> in the past. And AFAIK (please correct me if I am wrong) the missing
> command was simply ignored. And I think that the lines you quoted do
> not explain a shutdown while the line I quoted does.
>
> wolfy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200112/c99548ff/attachment-0001.html>
More information about the Nut-upsuser
mailing list