[Nut-upsuser] Low Battery Problems

Gene Heskett gheskett at shentel.net
Mon Jun 22 14:27:53 BST 2020


On Monday 22 June 2020 09:18:29 Charles Lepple wrote:

> On Jun 22, 2020, at 8:52 AM, Gene Heskett wrote:
> > pi at rpi4:~ $ upscmd myups test.battery.start.quick
> > Username (pi):
> > Password:
> > Unexpected response from upsd: ERR ACCESS-DENIED
> >
> > Looking at /etc/nut/uspd.users, I (me, pi) should be able to do
> > that. ???
>
> Hi Gene,
>
> You have a [pi] section in upsd.users, then? If it's one of the
> example users from the man page or comments, you'll need to use that
> name with upscmd, or change upsd.users.
>
> Plus, you'll need "instcmds = all" (or the specific test command) in
> the section for that NUT user.
>
> Ref: https://networkupstools.org/docs/man/upsd.users.html
> <https://networkupstools.org/docs/man/upsd.users.html>

I think its all there. Heresa snip, edited
        [pi]
                password  = xxxxxxxxxxxxx
                instcmds  = test.battery.start
                instcmds  = test.battery.stop
                calibrate.start
                calibrate.stop

#
# --- Configuring for upsmon
#
# To add a user for your upsmon, use this example:
#
        [upsmon]
                password  = xxxxxxxxxxxxx
                upsmon master


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>



More information about the Nut-upsuser mailing list