Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monit-nb: add module #472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

monit-nb: add module #472

wants to merge 1 commit into from

Conversation

nixbitcoin
Copy link
Member

@nixbitcoin nixbitcoin commented Apr 5, 2022

Closes #186

nix-bitcoin monitoring via monit

Messages are sent to the local mail spool and can then be retrieved via IMAP over the dovecot onion service. Thunderbird users can connect like so https://www.autistici.org/docs/anon/tor

Alternatively, we could use MailCatcher to display monit alerts on a WebUI accessible over a Tor onion service.

Unsolved problem: On some deployment mechanisms the system switch happens before secrets are deployed. Therefore, on these systems, users.users.monitmail.passwordFile fails because the file doesn't exist yet.

@nixbitcoin
Copy link
Member Author

nixbitcoin commented Apr 6, 2022

Updated: I changed monit to only alert on service status changes. This works under the assumption that everything will be running on the very first deploy. Also I added the service to configuration.nix and README.md.

Running this in production now and fetching mail via mpop over tor with neomutt.

nix-bitcoin monitoring via monit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add default monitoring configuration
1 participant