Only start nut if UPS is configured in master mode
Description
Problem/Justification
Impact
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
Waqar June 27, 2019 at 7:11 PM
This is good news Your UPS service is working just fine
I'll make sure those erroneous messages are not logged when UPS is in slave mode
Robert Johnston June 27, 2019 at 7:09 PM
Here you go:
[anaerin@freenas /usr/local/etc/nut]$ upsc serverups@mythbox.localdomain:3493
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 1035
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 13.9
battery.voltage.nominal: 12
device.mfr: CPS
device.model: CP 1350C
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: CyberPower HID 0.4
driver.version.internal: 0.41
input.transfer.high: 140
input.transfer.low: 90
input.voltage: 119.0
input.voltage.nominal: 120
output.voltage: 119.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 32
ups.mfr: CPS
ups.model: CP 1350C
ups.productid: 0501
ups.realpower.nominal: 298
ups.status: OL
ups.test.result: Done and warning
ups.timer.shutdown: -60
ups.timer.start: 0
ups.vendorid: 0764
Waqar June 27, 2019 at 6:59 PM
apart from the error message have you verified the UPS service isn't actually running ?
Can you please share the output of the following ?
Please change the value of "ups" to your UPS identifier set in UPS settings in UI. "remotehost" will be the remotehost value set and "remoteport" the remote port configured in settings in UI.
From your debug, we are getting UPS stats and upsmon is working as desired. I assume that it's only the logging which pointed you here but want to be sure.
Thank you, looking forward to hearing from you !
Robert Johnston June 27, 2019 at 4:02 PM
Debug attached.
I have a linux server set up with NUT to share the current UPS status, which is working just fine in the attached pfSense router. But when I use the GUI to set it up under FreeNAS I get the following error in the syslog:
Jun 20 21:17:43 freenas root: /usr/local/etc/rc.d/nut: WARNING: /usr/local/etc/nut/ups.conf is not readable.
Checking the folder, it contains:
[anaerin@freenas /usr/local/etc/nut]$ ls -al
total 14
drwxr-xr-x 2 root wheel 128 Jun 20 21:17 .
drwxr-xr-x 34 root wheel 5824 Jun 20 21:17 ..
rr---- 1 root uucp 472 Jun 20 21:17 upsmon.conf
rr---- 1 root uucp 473 Jun 20 21:17 upssched.conf
The settings appear to be all correct, so for some reason the web UI is not generating the correct conf files for NUT.
Is there anything I can do to fix this?