# Track SD Card health / RPi status

**URL:** <https://community.openhab.org/t/track-sd-card-health-rpi-status/138414>\
**Category:** Server\
**Created:** [August 25, 2022, 2:16pm UTC](https://community.openhab.org/t/track-sd-card-health-rpi-status/138414 "2022-08-25T14:16:16Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [August 29, 2022, 4:36pm UTC](https://community.openhab.org/t/track-sd-card-health-rpi-status/138414/21 "2022-08-29T16:36:42Z")

</div>

Seems an overly complex set up. If the UPS supports NUT (which is a big if), you can set up the RPi to get an alert when the power is lost and it’s running on battery and shut itself down. Even if the UPS doesn’t support NUT, it often will have it’s own software that does the same thing.

---

<div class="post-metadata">

**Author:** ![rpwong](https://community.openhab.org/user_avatar/community.openhab.org/rpwong/32/36036_2.png) [@rpwong](https://community.openhab.org/u/rpwong)\
**Post date:** [August 29, 2022, 6:15pm UTC](https://community.openhab.org/t/track-sd-card-health-rpi-status/138414/22 "2022-08-29T18:15:33Z")

</div>

> [@mokkinger](#):
>
> a used UPS

UPS batteries are generally good for 3-5 years, so if you get a used one then you may just be buying a nearly dead battery. A new, low-end UPS with a USB port will cost you somewhere between $60-100, which is worthwhile to protect your RPi and other servers.

> [@mokkinger](#):
>
> With my limited unix skills

I also have next-to-no Linux experience, which is why I wrote the beginner’s guide I linked to earlier. It was half to help others, and half to help me do it again in the future. 😉

> [@Beginner's Guide to Network UPS Tools (NUT) on a Raspberry Pi](https://community.openhab.org/t/beginners-guide-to-network-ups-tools-nut-on-a-raspberry-pi/78443):
>
> UPDATE (February 15, 2022): Updated with instructions for adding a second UPS Since I don’t want my OH installation to be corrupted by a power failure, I purchased a CyberPower UPS, and connected it to my Raspberry Pi using Network UPS Tools (NUT). There are various topics in the community about NUT, and this one was the most helpful for my purposes. With everything I’ve learned, here are some instructions to help others get started. Note that this guide is for is a simple setup with the UP…

---

<div class="post-metadata">

**Author:** ![rpwong](https://community.openhab.org/user_avatar/community.openhab.org/rpwong/32/36036_2.png) [@rpwong](https://community.openhab.org/u/rpwong)\
**Post date:** [August 29, 2022, 6:39pm UTC](https://community.openhab.org/t/track-sd-card-health-rpi-status/138414/23 "2022-08-29T18:39:43Z")

</div>

> [@rlkoshak](#):
>
> If we make extreme restrictions it might just be possible (e.g. only support locally controlled UPS, force the users to go research to find the right driver themselves, etc.).

If the goal is only to help new openHABian users get NUT working, then I think it would be enough to have a default configuration of a standalone, locally controlled UPS. Perhaps there could be some fill-in options in a config popup:

- Driver (e.g. [USBHID-UPS](https://networkupstools.org/docs/man/usbhid-ups.html))
- UPS name
- Shutdown timer

For anything more advanced, the user could make their own changes after the installation.

I’d also suggest making [this change](https://nmaggioni.xyz/2017/03/14/NUT-CyberPower-UPS) in the default monitor settings to account for CyberPower. I don’t think it would negatively impact any other devices. Alternatively, it could be a fill-in field in a popup.

> [@rlkoshak](#):
>
> NUT really is a disappointing in its complexity.

I was surprised to see that someone has revived NUT and put out a new release in April. Hopefully they’ll reduce the complexity in future updates.

> **[Releases · networkupstools/nut](https://github.com/networkupstools/nut/releases)**
>
> The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships...

[Previous page](https://community.openhab.org/t/track-sd-card-health-rpi-status/138414.md?page=1)
