Skip to content

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