Jump to content
dmacias

[Plugin] NUT v2 - Network UPS Tools

235 posts in this topic Last Reply

Recommended Posts

It's because @dmacias is using an icon (icon-ups) that only exists in 6.7 instead of a font-awesome icon

Share this post


Link to post
It's because [mention=11874]dmacias[/mention] is using an icon (icon-ups) that only exists in 6.7 instead of a font-awesome icon
Opps didn't think of that

Share this post


Link to post
Is it just my system, or has anyone else noticed that the Settings icon for NUT doesn’t display anymore since the January 24th update to fa font? I initially thought it was just a browser cache thing, but I’ve since tried multiple browsers, multiple computers, etc. The NUT icon in the plugins page loads fine, but I’m assuming that’s because it hasn’t been changed to be “awesome”
 
(Running 6.6.6 if that matters. I haven’t had a chance to try out the 6.7RC yet)
 
-A
Thanks. Fixed now
  • Like 1

Share this post


Link to post

Yup, I noticed that there was an update to the plugin this morning. Looks good! Thanks.

 

-A

Share this post


Link to post

@dmacias thank you for this great plugin it works brilliantly.

My mercer 2 KvA just recently died on me and I see talk of a lot of Eaton 5E's so went and purchased one, only to find out it's a surprisingly bare bones but well built UPS.

Please see attached my auto detect from your brilliant plugin and any advice from fellow Eaton users if I should make a change to the config?

 

Thanks for any feedback.

NUT.auto.png

Share this post


Link to post
Does this plugin only support USB connected UPS'?  I have an RMCARD203 network card in my Cyberpower OL1000RTXL2U UPS and was hoping there was a way to manage it through Unraid.
It might support it through snmp.

Share this post


Link to post
1 hour ago, dmacias said:
15 hours ago, IamSpartacus said:
Does this plugin only support USB connected UPS'?  I have an RMCARD203 network card in my Cyberpower OL1000RTXL2U UPS and was hoping there was a way to manage it through Unraid.

It might support it through snmp.

 

Should I be able to enter my UPS' IP where it shows 127.0.0.1?  My server doesn't seem to allow any input there.

Share this post


Link to post
 
Should I be able to enter my UPS' IP where it shows 127.0.0.1?  My server doesn't seem to allow any input there.
That is the ip for the nut service. And if you have nut master server on a different computer, then that's the ip for the master server. I don't have any experience with setting up nut to use snmp. But everything is there for it.

Share this post


Link to post

 

Hi, I'm having trouble getting NUT to work! I tried autodetect and it finds my ups, a Riello rackmount 1100va AROS Dialog Vision, but doesn't fill in the settings! So I tried manual and copied the auto-detected settings to ups.conf, nothing happens and I see the following in the log!

 

Feb 21 16:34:17 Tower upsmon[5909]: Poll UPS [ups@127.0.0.1] failed - [ups] does not exist on server 127.0.0.1
Feb 21 16:34:22 Tower upsmon[5909]: Poll UPS [ups@127.0.0.1] failed - [ups] does not exist on server 127.0.0.1
Feb 21 16:34:27 Tower upsd[5905]: Can't connect to UPS [nutdev1] (riello_usb-nutdev1): No such file or directory
Feb 21 16:34:27 Tower upsmon[5909]: Poll UPS [ups@127.0.0.1] failed - [ups] does not exist on server 127.0.0.1
Feb 21 16:34:32 Tower upsmon[5909]: Poll UPS [ups@127.0.0.1] failed - [ups] does not exist on server 127.0.0.1
Feb 21 16:34:37 Tower upsmon[5909]: Poll UPS [ups@127.0.0.1] failed - [ups] does not exist on server 127.0.0.1
 

ups.conf

[nutdev1]
driver = "riello_usb"
port = "auto"
vendorid = "04B4"
productid = "5500"
product = "USB to Serial"
vendor = "Cypress Semiconductor"
bus = "001"

 

nut.conf

MODE=standalone

 

upsd.conf

LISTEN 0.0.0.0

 

upsd.users

[admin]
password=adminpass
actions=set
actions=fsd
instcmds=all
[monuser]
password=monpass
upsmon master
[slaveuser]
password=slavepass
upsmon slave

 

upsmon.conf

MONITOR ups@127.0.0.1 1 monuser monpass master
SHUTDOWNCMD "/sbin/poweroff"
POWERDOWNFLAG /etc/nut/no_killpower
NOTIFYFLAG ONBATT SYSLOG+EXEC
NOTIFYFLAG ONLINE SYSLOG+EXEC
NOTIFYCMD "/usr/sbin/nut-notify"

 

upssched.conf

empty

 

Anything you can see that's wrong?

Cheers, Tim

 

 

Share this post


Link to post
 
Hi, I'm having trouble getting NUT to work! I tried autodetect and it finds my ups, a Riello rackmount 1100va AROS Dialog Vision, but doesn't fill in the settings! So I tried manual and copied the auto-detected settings to ups.conf, nothing happens and I see the following in the log!
 
Feb 21 16:34:17 Tower upsmon[5909]: Poll UPS [ups@127.0.0.1] failed - [ups] does not exist on server 127.0.0.1
Feb 21 16:34:22 Tower upsmon[5909]: Poll UPS [ups@127.0.0.1] failed - [ups] does not exist on server 127.0.0.1
Feb 21 16:34:27 Tower upsd[5905]: Can't connect to UPS [nutdev1] (riello_usb-nutdev1): No such file or directory
Feb 21 16:34:27 Tower upsmon[5909]: Poll UPS [ups@127.0.0.1] failed - [ups] does not exist on server 127.0.0.1
Feb 21 16:34:32 Tower upsmon[5909]: Poll UPS [ups@127.0.0.1] failed - [ups] does not exist on server 127.0.0.1
Feb 21 16:34:37 Tower upsmon[5909]: Poll UPS [ups@127.0.0.1] failed - [ups] does not exist on server 127.0.0.1
 
ups.conf
[nutdev1]
driver = "riello_usb"
port = "auto"
vendorid = "04B4"
productid = "5500"
product = "USB to Serial"
vendor = "Cypress Semiconductor"
bus = "001"
 
nut.conf
MODE=standalone
 
upsd.conf
LISTEN 0.0.0.0
 
upsd.users
[admin]
password=adminpass
actions=set
actions=fsd
instcmds=all
[monuser]
password=monpass
upsmon master
[slaveuser]
password=slavepass
upsmon slave
 
upsmon.conf
MONITOR ups@127.0.0.1 1 monuser monpass master
SHUTDOWNCMD "/sbin/poweroff"
POWERDOWNFLAG /etc/nut/no_killpower
NOTIFYFLAG ONBATT SYSLOG+EXEC
NOTIFYFLAG ONLINE SYSLOG+EXEC
NOTIFYCMD "/usr/sbin/nut-notify"
 
upssched.conf
empty
 
Anything you can see that's wrong?
Cheers, Tim
 
 
What does autodetect show when you run it?

Share this post


Link to post

Autodetect shows this:

 

 

Scanning for UPS...

[nutdev1]
driver = "riello_usb"
port = "auto"
vendorid = "04B4"
productid = "5500"
product = "USB to Serial"
vendor = "Cypress Semiconductor"
bus = "001"

 

Share this post


Link to post
On 2/20/2019 at 12:17 AM, IamSpartacus said:

Does this plugin only support USB connected UPS'?  I have an RMCARD203 network card in my Cyberpower OL1000RTXL2U UPS and was hoping there was a way to manage it through Unraid.

Let me know if you get anywhere with this. I have a Cyberpower OL1500RTXL2UN, and would be interested in your findings. Currently have mine through the UPS port, but would switch.

Share this post


Link to post
20 minutes ago, cybrnook said:

Let me know if you get anywhere with this. I have a Cyberpower OL1500RTXL2UN, and would be interested in your findings. Currently have mine through the UPS port, but would switch.

 

I just wound up connecting via USB since my UPS is right next to my server anyway.  Wasn't worth the hassle.

Share this post


Link to post

Same as I am doing. But, it would be nice to be able to tell multiple devices to shutdown gracefully in the event a power outage comes along for an extended period of time. Might look into setting up the Nut Server to try and do that.

Share this post


Link to post
3 minutes ago, cybrnook said:

it would be nice to be able to tell multiple devices to shutdown gracefully in the event a power outage

You can do that with the stock apcupsd in unraid.

Share this post


Link to post
29 minutes ago, jonathanm said:

You can do that with the stock apcupsd in unraid.

Unfortunately our UPS's don't work with the stock apcupsd. Which is why we are using Nut.

Share this post


Link to post
On 2/25/2019 at 1:01 PM, MothyTim said:

Autodetect shows this:

 

 

Scanning for UPS...

[nutdev1]
driver = "riello_usb"
port = "auto"
vendorid = "04B4"
productid = "5500"
product = "USB to Serial"
vendor = "Cypress Semiconductor"
bus = "001"

 

Any help?

 

I have noticed that riello_usb is not listed in the gui driver drop down!

 

Cheers Tim

Share this post


Link to post
Any help?
 
I have noticed that riello_usb is not listed in the gui driver drop down!
 
Cheers Tim
I think it's the name. Change nutdev1 to ups

Share this post


Link to post
18 minutes ago, dmacias said:
39 minutes ago, MothyTim said:
Any help?
 
I have noticed that riello_usb is not listed in the gui driver drop down!
 
Cheers Tim

I think it's the name. Change nutdev1 to ups

Hi, ok tried that, still get an error!


Feb 28 12:49:43 Tower avahi-daemon[12301]: Joining mDNS multicast group on interface vetha995387.IPv6 with address fe80::4482:f5ff:feb4:145c.
Feb 28 12:49:43 Tower avahi-daemon[12301]: New relevant interface vetha995387.IPv6 for mDNS.
Feb 28 12:49:43 Tower avahi-daemon[12301]: Registering new address record for fe80::4482:f5ff:feb4:145c on vetha995387.*.
Feb 28 12:54:35 Tower ntpd[2019]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Feb 28 12:56:38 Tower emhttpd: req (1): cmd=/plugins/community.applications/scripts/pluginInstall.sh&arg1=install&arg2=https://raw.githubusercontent.com/bergware/dynamix/master/unRAIDv6/dynamix.system.stats.plg&csrf_token=****************
Feb 28 12:56:38 Tower emhttpd: cmd: /usr/local/emhttp/plugins/community.applications/scripts/pluginInstall.sh install https://raw.githubusercontent.com/bergware/dynamix/master/unRAIDv6/dynamix.system.stats.plg
Feb 28 12:56:38 Tower root: plugin: running: anonymous
Feb 28 12:56:38 Tower root: plugin: creating: /boot/config/plugins/dynamix.system.stats/dynamix.system.stats.txz - downloading from URL https://raw.githubusercontent.com/bergware/dynamix/master/archive/dynamix.system.stats.txz
Feb 28 12:56:39 Tower root: plugin: checking: /boot/config/plugins/dynamix.system.stats/dynamix.system.stats.txz - MD5
Feb 28 12:56:39 Tower root: plugin: running: /boot/config/plugins/dynamix.system.stats/dynamix.system.stats.txz
Feb 28 12:56:39 Tower root: plugin: running: anonymous
Feb 28 12:57:53 Tower emhttpd: req (2): cmd=/plugins/nut/scripts/nutscan&csrf_token=****************
Feb 28 12:57:53 Tower emhttpd: cmd: /usr/local/emhttp/plugins/nut/scripts/nutscan
Feb 28 12:58:56 Tower emhttpd: req (3): cmd=/plugins/nut/scripts/nutscan&csrf_token=****************
Feb 28 12:58:56 Tower emhttpd: cmd: /usr/local/emhttp/plugins/nut/scripts/nutscan
Feb 28 12:59:00 Tower root: Fix Common Problems Version 2019.02.18
Feb 28 12:59:45 Tower ool www[10647]: /usr/local/emhttp/plugins/nut/scripts/start
Feb 28 13:00:39 Tower ool www[10647]: /usr/local/emhttp/plugins/nut/scripts/start
Feb 28 13:00:42 Tower upsd[24302]: listening on 0.0.0.0 port 3493
Feb 28 13:00:42 Tower upsd[24302]: Can't connect to UPS [ups] (riello_usb-ups): No such file or directory
Feb 28 13:00:42 Tower upsd[24303]: Startup successful
Feb 28 13:00:42 Tower upsmon[24306]: Startup successful
Feb 28 13:00:42 Tower upsd[24303]: User monuser@127.0.0.1 logged into UPS [ups]
Feb 28 13:00:42 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:00:42 Tower upsmon[24307]: Communications with UPS ups@127.0.0.1 lost
Feb 28 13:00:47 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:00:47 Tower upsmon[24307]: UPS ups@127.0.0.1 is unavailable
Feb 28 13:00:52 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:00:57 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:01:02 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:01:07 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:01:07 Tower ool www[10647]: /usr/local/emhttp/plugins/nut/scripts/reload
Feb 28 13:01:10 Tower upsd[24303]: mainloop: Interrupted system call
Feb 28 13:01:10 Tower upsd[24303]: SIGHUP: reloading configuration
Feb 28 13:01:10 Tower upsmon[24307]: Reloading configuration
Feb 28 13:01:10 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:01:15 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:01:20 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:01:25 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:01:30 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:01:35 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:01:40 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected
Feb 28 13:01:45 Tower upsmon[24307]: Poll UPS [ups@127.0.0.1] failed - Driver not connected

Share this post


Link to post

Maybe try just this in ups.conf in manual mode with the other confs the same. Also try a non usb3 port

[ups]driver = "riello_usb"port = "auto"

  • Like 1

Share this post


Link to post
12 minutes ago, dmacias said:

Maybe try just this in ups.conf in manual mode with the other confs the same. Also try a non usb3 port


[ups]driver = "riello_usb"port = "auto"
 

 

That worked! Thank you! Been driving me nuts, trying to get this working! :)

Share this post


Link to post

Next time I update the plugin I'll add that ups to the dropdown

  • Like 1

Share this post


Link to post
6 hours ago, dmacias said:

Next time I update the plugin I'll add that ups to the dropdown

That’ll be great, thanks! :)

Share this post


Link to post

How does NUT handle a live array during a power outage shutdown? I assume it cleanly stops the array before issuing the shutdown command? Thanks.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now