Installing NUT on Ubuntu4 min read

I have been using apcupsd for years without issue. Lately, the random freezes lead me to discover that there was an issue been apcupsd and Linux 3.5.x kernels. This left me looking for an alternative. I knew about NUT, but I have never used it before. It’s relatively easy to configure and can work to provide shutdown scripts for remote boxes. Here’s how I set it up.

Next, you need to configure it for your device.

and paste at the bottom. Mine’s an APC-1500, so I’ve set it to a recognizable name (apc-1500)

Start it up.

I had to reboot to get this working for some reason, and still had to make the directory for it to run.

Try again,

It should look like this when it starts up.

Next, I set it up to listen to localhost and on my subnet.

add lines similar to these.

Set the mode.

Start the network data server

You can check the status like this.

If all is well, it will provide output like tihs.

OL means your system is running On Line power. If you want to see all the info, try this instead.

Before I forget, I wanted to disable the beeper so I don’t have a heart attack if I lose power at night.

Next, we need to setup some users to access the info and make changes.

I’m building a monitor master user and a slave for remote boxes.

Reload upsd

Then we have to setup upsmon for our device.

and paste something like this.

We need to setup NUT to run in standalone mode.


Now, you can start NUT

You should have a working UPS Monitoring system now. Next time, I’ll show you how to connect to this with other machines to enable safely shutting them down as well.

Setting up a Client (Slave) Computer
The nice thing about NUT is that it can control more than just the machine it’s hooked up to. Here’s how you configure another machine to use your master host to safely shutdown.

On your client machine, first download nut.

Next, configure the mode


Then, set your upsmon.conf to match the setup for your monuserslave above (also, use the ip address of your master nut-server).

paste… (substitue the ip address below with your nut-server’s ip, and put your monuserslave password in from above).

Finally, restart your nut-client

You can test that it’s working like this…



I love learning new things and trying out the latest technology.

You may also like...

2 Responses

  1. Xsabre says:

    Great tutorial as always. Please correct the following

    upscmd apc beeper.disable – Should be [ upscmd apc-1500 beeper.disable ] and requires user:monuser and password. Might be a good idea to place it after adding the user.

    What system.d service syntax are you using for “service nut start”?

    Additionally if someone wants to provide alerts the following link provides instruction. I believe you may have used it as well in creating your tutorial. []

    • Zack Zack says:

      Thanks. Good catch on the name screw up. To startup the server you would use.

      and to start the client…

      Yes, I did use some of the updates from that tutorial in my tutorial. But, that tutorial was originally based my tutorial that came from 10.04 that I had on the old site 🙂 Although, I do use a modified version of the alerting site from that site. I use mutt in lieu of mail, because I have it setup to use my gmail account to send system emails.

      Thanks for the comments 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.