Monitoring an Eaton 9130 UPS with NUT on USB?
-
I'm running pfSense on my ESXi server in a VM and I have an Eaton 9130 UPS connected to the server (HP ML350 G6). I added the USB device (Eaton 9130) to the pfSense VM and I installed the NUT package in pfSense and configured it to use the recommended driver but it fails to see the UPS.
Anyone had success getting this UPS to work over USB with pfSense?
-
Giving credit to RyanM for this. This solved the USB connectivity issues and now I can monitor the UPS.
@RyanM said in UPS master via USB:
FWIW, I figured this out. I had to navigate to Services > UPS. Then select the UPS Settings tab. From the settings page, click the "Display Advanced" button.
In upsmon.conf add the following:
RUN_AS_USER root
This is a work-around to sending email notifications. See post #642812 in the NUT package thread.
In ups.conf add the following:
user = root
This will cause upsdrvctl to run as root.
In upsd.conf add the following:
LISTEN 127.0.0.1 LISTEN 192.168.10.1
This will cause the UPS daemon to listen on localhost as well as my LAN IP so that a "slave" can connect to it.
Now, however, I need to figure out how to automate VM and hardware shutdowns based on this information... Any ideas or help there?