UPS SNMP Driver Support?

I have a CyberPower rackmount UPS with their network management card connected. This UPS backs up my entire network stack (Router, PoE Switches, etc), 2 NAS devices, a separate PC etc.

I have been able to use the SNMP capability of the CyberPower network management card to have an orderly shutdown of devices connected to this UPS when power drops.

Hence, I don't currently have a NUT server deployed.

My Hubitat C-7 is being powered from a PoE switch connected to this UPS. Is there a driver available for CyberPower? I saw a different post about an APC driver, but I am assuming this won't work with CyberPower.

I really don't want to add a RaspPi just so that I can have a NUT server to do an orderly shutdown of the Hubitat device.

I have a couple of VMs running, and could (??) install the NUT server on a VM (or is this just for RaspPi?)

Ideally, I would like to not have another piece of software in the loop that I have to keep updated and all that.

Thanks!

1 Like

What software are you using on the various devices to perform the shutdown?

1 Like

The NAS devices work via SNMP and automatically detect the UPS.

On the PCs, I am running the CyberPower UPS software.

You mean like Synology or QNAP?

Yes - they are QNAP NAS devices.

QNAP is NUT based.

You are correct...never said that...they are SNMP.

This is why I do not have a NUT server running right now.

You have a NUT server running on QNAPs.

Did not know that...

When I "installed" the UPS on the QNAP devices, I had to select the SNMP protocol.

NUT is a modular system comprised of discrete processes. There is the server (upsd), the driver for the UPS (snmp-ups in this case), and the local monitor (upsmon). The drivers talks to the server, as do the monitors, both local and remote.

If memory serves, QNAP (like Synology) uses the default/demo settings for NUT monitor access: username is "monuser" and password "secret"

1 Like

OK - cool - thanks for responding.

I will check this out tonight...and if I can get it to work, I will post back here.

Thanks again.

some of the net cards support http or telnet (as long as it is not encrypted) a driver could be written the same way i wrote the apc one.. however i dont have one of these device.. if someone donates one with the card or ships one to me and pays return shipping i could easily write a driver.. save that it would be too hard to debug without a device.. Also looked at cost.. it is actually cheaper to get a used apc net ups with the card than cyberpower.. go figure.

@kahn-hubitat: I could put one of the UPS networks cards on a separate subnet, and give you a VPN connection... :grinning:

ya but i cannot put my hubitat hub nor my whole network on a permanent vpn. too much stuff would stop working.. i guess if you give me a vpn and acess to your hub and the ups via vpn i could probably do something.. i would hate to be developing on your live hub however..

also can you test telnet via port 23 to the ups and see if it is working.

I will have to try that at home...don't have a Telnet app on my tablet here at work.

This isn't really what you were asking, but here's a thought on a quick / easy solution that Hubitat is already prepared to handle.

You could get a Ring Generation 2 repeater, pair it with Hubitat, and plug that into a wall plug somewhere close to the hub (direct connection, no intermediate hops so its in communication when the power goes out).

If the wall plug loses power, the Ring G2 Repeater switches to its internal battery so it continues to work but it will report the battery change to Hubitat via a change to its "powerSource" attribute.

Trigger your orderly shutdown event off of the repeater's switch to battery,

Its a cheap / easy solution with no need for any extra software, and you add a Z-wave 700 chip series repeater so it should also improve mesh strength.

1 Like

in order for this to work the hub also has to be on battery back .. and normally you would not want to shutdown on every power fluctuation as some are very brief,, thus monitoring the ups for low runtime to shutdown is a much better solution.

if you have the USB connection, connect the UPS to your NAS, you should be able to use that as a NUT server. that's how i manage from my Synology

@kahn-hubitat: Yes - has telnet

good. is all the info there to determin status battery/ac, runtime avail. etc.