[Nut-upsuser] New User Questions - With Belkin USB
David White
whitedavidp at yahoo.com
Fri Jul 12 19:39:25 BST 2019
Thanks Roger for all your help here. I hope the 2 attachments come
through. The .sh is my doctored version of the script and the .report is
its output. I welcome any suggestions or ideas about what might be
causing my problems with monitoring to the Belkin UPS. Cheers
On 7/12/2019 10:12 AM, Roger Price wrote:
> On Fri, 12 Jul 2019, David White wrote:
>
>> Hello, thanks, and sorry for the delay in getting back. I am running
>> the script and have move the comment from one D= line to the other. I
>> am, however, seeing some errors written to the console. They are from
>> line 64-65 of the script.
>>
>> Regarding line 64, I have no /usr/sbin/ups* and suspect the proper
>> location on my Ubuntu install is /sbin/ups*. Is this possible? Here I
>> have upsd and 9 other files.
>>
>> Regarding line 65, I also have and no /etc/ups/*. I would have
>> expected that second location might have been driven by the D
>> variable. Is that what it should be instead of hard-coded to /etc/ups
>> which, as you point out, is the appropriate location for Ubuntu? this
>> is where nut.conf and 5 other files are located.
>
> Thanks for the report. I confess that the script has not been tested
> with Ubuntu. I wrongly assumed that it would follow Debian.
>
> Could you make the changes to the script you describe, create the
> report, and send me a list of the directories and files you used? If
> it's simpler for you, email me the modified script as you used it. I
> will update the source script to include a variable value suitable for
> Ubuntu.
>
> Thanks again, Roger
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nut-report.sh
Type: application/x-sh
Size: 3226 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20190712/3bf25677/attachment-0001.sh>
-------------- next part --------------
NUT configuration 2019-07-12 18:32:01 UTC
########### Operating system ###########
3.0.36+ GNU/Linux
NAME="Ubuntu"
PRETTY_NAME="Ubuntu 14.04 LTS"
########### /etc/nut/nut.conf ###########
MODE=standalone
########### /etc/nut/ups.conf ###########
maxretry = 3
[belkinusb]
driver = blazer_usb
port = auto
desc = "Belkin UPS, USB interface"
########### /etc/nut/upsd.conf ###########
MAXAGE 15
LISTEN 127.0.0.1 3493
MAXCONN 1024
########### /etc/nut/upsd.users ###########
[local_mon]
password = *********
upsmon master
########### /etc/nut/upsmon.conf ###########
MONITOR belkinusb at localhost 1 local_mon ********* master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /home/android/nutShutdown.sh
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONBATT EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
########### /etc/nut/upssched.conf ###########
CMDSCRIPT /bin/upssched-cmd
########### /usr/sbin/upssched-cmd ###########
Cannot access /usr/sbin/upssched-cmd
########### /etc/hosts.allow ###########
########### ps aux ###########
nut 24329 0.0 0.0 3336 660 ? Ss Jul09 1:10 /sbin/upsd
root 24346 0.0 0.0 3328 824 ? Ss Jul09 0:00 /sbin/upsmon
nut 24349 0.0 0.2 4280 1840 ? S Jul09 1:05 /sbin/upsmon
########### Ownership and permissions ###########
-rwxr-xr-x 1 root root 43204 Dec 30 2013 /sbin/upsd*
-rwxr-xr-x 1 root root 18224 Dec 30 2013 /sbin/upsdrvctl*
-rwxr-xr-x 1 root root 30852 Dec 30 2013 /sbin/upsmon*
-rwxr-xr-x 1 root root 22340 Dec 30 2013 /sbin/upssched*
-rwxr-xr-x 1 root root 100064 Apr 11 2014 /sbin/upstart-dbus-bridge*
-rwxr-xr-x 1 root root 95824 Apr 11 2014 /sbin/upstart-event-bridge*
-rwxr-xr-x 1 root root 108140 Apr 11 2014 /sbin/upstart-file-bridge*
-rwxr-xr-x 1 root root 104100 Apr 11 2014 /sbin/upstart-local-bridge*
-rwxr-xr-x 1 root root 99924 Apr 11 2014 /sbin/upstart-socket-bridge*
-rwxr-xr-x 1 root root 58980 Apr 11 2014 /sbin/upstart-udev-bridge*
-rwxrwxrwx 1 root nut 1544 Jul 7 13:12 /etc/nut/nut.conf*
-rwxrwxrwx 1 root nut 4653 Jul 9 09:06 /etc/nut/ups.conf*
-rwxrwxrwx 1 root nut 4572 Jul 7 13:16 /etc/nut/upsd.conf*
-rwxrwxrwx 1 root nut 2177 Jul 7 13:17 /etc/nut/upsd.users*
-rwxrwxrwx 1 root nut 15229 Jul 7 16:29 /etc/nut/upsmon.conf*
-rwxrwxrwx 1 root nut 3887 Dec 30 2013 /etc/nut/upssched.conf*
########### nut-journal ###########
More information about the Nut-upsuser
mailing list