Monitoring UPS with NUT

In this article , i’m going to show you how you can set up monitoring of a cheap UPS with NUT , and set your server to correctly shutdown 10 minutes after power a fail , to prevent data loss.

The area where i’ve built my house is still under development, so brown-outs and black-outs are pretty common .

It happened more than once to come home and find my server off and the ups batteries depleted , so i decided to change my setup and get alerts by e-mail when power goes out.

I will be using the same server i have for Openstack, to monitor and send out alerts .

The UPS is connected to the server using a USB cable .

Connect your USB cable , and run :

Save your UPS descriptor for the next steps :

Install NUT :

Add UPS config, for my UPS i used the name : mustek-poweragent-2012

And add the following lines :

Start ups monitor :

It’s possible that you will receive an error message , like so :

It’s a permission problem , which we can fix :

And add the lines :

After which you need to reboot your server






Leave a comment

Your email address will not be published.


Solve : *
27 − 22 =