On 15/04/2021 04.33, David C. Rankin wrote:
On 4/14/21 5:40 PM, Carlos E. R. wrote:
Hi,
I have one UPS (with an almost dead battery) and I want to at least see it with NUT. When I connect it, I see in the log:
You need to set a few setting in the /etc/ups files. Here is how I have a ups setup with nut on host valkyrie that has a ups I name "valkyrie_ups" for nut. Only the uncommented lines are shown under the config file name and the password is needed where I have "MyPassword":
(the noc script below is just my "no comment" script that picks out lines not commented using sed)
$ for i in *.conf; do printf "\n%s\n\n" $i; noc $i; done
hosts.conf
MONITOR valkyrie_ups@localhost "Valkyrie CP1350PFCLCD UPS"
nut.conf
MODE=standalone
ups.conf
[valkyrie_ups] driver = usbhid-ups port = /dev/hiddev0 desc = "Valkyrie CP1350PFCLCD UPS"
upsd.conf
upsmon.conf
MONITOR valkyrie_ups@localhost 1 david MyPassword master MINSUPPLIES 1 SHUTDOWNCMD "/usr/bin/systemctl poweroff" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/ups/killpower RBWARNTIME 86400 NOCOMMWARNTIME 300 FINALDELAY 5
upssched.conf
CMDSCRIPT /usr/bin/upssched-cmd
upsset.conf
Not using network or apache yet.
I_HAVE_SECURED_MY_CGI_DIRECTORY
But what command is supposed to start it? The documentation says commands that do not exist! -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)