view the rest of the comments
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil.
-
No spam.
-
Posts are to be related to self-hosting.
-
Don't duplicate the full text of your blog or readme if you're providing a link.
-
Submission headline should match the article title.
-
No trolling.
-
Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.
-
AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Thanks. Good info. Feel like sharing your conf file to see how it's formatted in an example that actually works? Might make this my weeks evening project.
It's a lot. But here are my most recent notes.
Note that the pipe & lock locations different by distro, as does the nut username. So these files won't drop in and work anywhere.
The dummy driver will need to be installed and configured.
Mine also have several layers of timers on battery an online:
Most configs would have the client side cancel their timers if power returns. In my case I don't want that because I prefer more certainty of state so that I know it's safe to power cycle an outlet to bring a device back up. My NUT server runs on an old pi 3b with a read-only file system. So it never needs a safe shutdown. It's the last man standing to bring everything else back up if the UPS returns to line power before the battery is exhausted. That's why there is no local shutdown on the NUT server config.
Each
snmpset...is a truncated version of an outlet power command.Also, the wall commands were a debug aid. Uncomment to use, but test a command first. Wall doesn't work on some distros.
NUT Server
NUT.CONF:
UPS.CONF:
UPSD.CONF:
UPSD.USERS:
UPSMON.CONF:
UPSSCHED-CMD
NUT Client
NUT.CONF
UPS.CONF
UPSD.CONF
UPSD.USERS
UPSMON.CONF
UPSSCHED.CONF
UPSSCHED-CMD