Protection from power failures! Mac, UPS, NAS & NUT

If you watched my YouTube video on protection from power failures (here), you know I promised to include the configuration files and commands on this blog.  So here they are:

To hide the ‘ups’ user:

sudo dscl . create /Users/ups IsHidden 1


In the upsmon.conf file, enter the following lines:



in the RUN_AS_USER <userid> section, and

MONITOR qnapups@ 1 upsmon 123456 slave

in the MONITOR <system> <powervalue> <username> <password> (“master”|”slave”) section.  I didn’t change anything else from the sample file provided with the software.

My org.networkupstools.nut.plist file looks like this:

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “”&gt;
<plist version=”1.0″>

and it is located in the /Library/LaunchDaemons directory.

The command to load the daemon automatically on startup is:

sudo launchctl load /Library/LaunchDaemons/org.networkupstools.nut.plist

Hope you enjoyed the video tutorial and I hope it’s useful to you!





Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s