If you’re copying my config, the test looks like this. Now, check your connection to the master. ups is the name of the UPS that my servers are plugged into. It’s watching the Raspberry that’s running NUT, not the UPS directly. This time the MONITOR is a little different. You’ll need the name of the UPS, the username, and the password that we configured on the master. (I just put it right at the end so it’s easy to find.): MODE=none Edit / add the following line to nut.conf. The nut.conf file is used to put the software into slave mode. To get the slave talking to the master, you’ll have to edit two files: nut.conf and nf. Now, it’s time to configure the “slaves” or the computers that hear that Raspberry screaming that the lights are out! How to Install a NUT clientįirst, install the nut client: sudo apt install nut-client It’s got a USB connection to the UPS and watches for the UPS switching between mains and battery power. The last Raspberry we configured was the “master”. IF the power is out for 10 minutes or more, it’s not coming back on anytime soon, so I need NUT to send a command to shutdown the server. It’s got a USB connection to the UPS and my webserver is plugged in to that UPS. So far, we’ve got nut-tools running on a Raspberry Pi 3. The UPS will handle that, easy! But if the generator fails, I’ve got to make sure that someone does a “shutdown -h now” on my LINUX servers. Honestly, this whole place is on standby generator power, so the lights might go out for 15-20 seconds during the switchover. This post will lead you through configuring your server to shutdown after 10 minutes. Looking at my UPS stats on the NUT web server pages, it looks like I’ve got about 16 minutes of runtime under the current load. The slaves are your servers and other computers that are plugged into the UPS. Once you have NUT-tools configured on your Raspberry to monitor your UPS, the next step is configuring the slaves.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |