This is what I did.
apt-get install nut
nano /etc/nut/ups.confI pasted this at the bottom
[eaton-5sc]
driver = usbhid-ups
port = autoI started it up
upsdrvctl startThen I got this response
Network UPS Tools - UPS driver controller 2.7.4
Network UPS Tools - Generic HID driver 0.41 (2.7.4)
USB communication driver 0.33
Using subdriver: MGE HID 1.40How do I proceed to make the ups shutdown my server if there are a powerloss?
Reset to default