<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
My upssched-cmd script is not modified and having just the following
lines:<br>
<blockquote><tt>case $1 in</tt><br>
<tt> upsgone)</tt><br>
<tt> logger -t upssched-cmd "The UPS has been gone
for awhile"</tt><br>
<tt> ;;</tt><br>
<tt> *)</tt><br>
<tt> logger -t upssched-cmd "Unrecognized command:
$1"</tt><br>
<tt> ;;</tt><br>
<tt>esac</tt><br>
</blockquote>
<div align="justify">And thus its the same as the <a
moz-do-not-send="true"
href="https://github.com/networkupstools/nut/blob/7f2965da1f3d0319d6a3cbd78399897ce29b8b10/clients/upssched-cmd">initial
version</a>, so the output is as expected. I see there is a <a
moz-do-not-send="true"
href="https://github.com/networkupstools/nut/blob/master/clients/upssched-cmd">newer
version</a> 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.<br>
<br>
Anyway, this is not a problem.<br>
</div>
<br>
<br>
Regards,<br>
--<br>
Georgi<br>
<br>
<div class="moz-cite-prefix">On 11.1.2020 at 17:52, Manuel Wolfshant
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AE10EF64-DE0D-4D7B-BE3D-D47F8B1E89EB@nobugconsulting.ro">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
On January 11, 2020 3:42:15 PM GMT+02:00, Roger Price
<a class="moz-txt-link-rfc2396E" href="mailto:roger@rogerprice.org"><roger@rogerprice.org></a> wrote:<br>
>On Sat, 11 Jan 2020, Georgi D. Sotirov wrote:<br>
><br>
>> Jan 11 11:49:15 sotirov-bg upsmon[2677]: UPS
mgeups@localhost on<br>
>battery<br>
>> Jan 11 11:49:15 sotirov-bg upssched[29746]: Executing
command:<br>
>ups-on-battery<br>
>> Jan 11 11:49:15 sotirov-bg upssched-cmd: Unrecognized
command:<br>
>ups-on-battery<br>
><br>
>These lines say that you have something like<br>
><br>
> AT ONBATT mgeups@localhost EXECUTE ups-on-battery<br>
><br>
>declared in file upssched.conf, but script upssched-cmd does
not have a<br>
>case <br>
>statement option or something similar to catch such a call to<br>
>upssched-cmd.<br>
><br>
<br>
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.<br>
<br>
wolfy<br>
</blockquote>
<br>
</body>
</html>