|J. David Lee 49ab7946c7
Simple alerts and monitoring server.
The server (
cmd/amserver) compiles to a dependency-free binary. Associated
files will be created or read from the working directory.
Log and Alert Scripts
The server will call two scripts for log or alert events. These scripts need to
be executable and exist in the working directory. They need to be called
alert-action. They are called with two arguments:
- The name of the source reporting the log or alert.
- The associated text.
Run the server with a listen address:
amserver -listen example.com:443
If the port is 443, then the server will serve over https and automatically acquire a certificate from letsencrypt.
Default User Account
By default, an account is created with username
root and password
Sources can perform three actions:
alert. Actions are sent
as standard HTTP POST requests to the URL
--data-urlencode "action=alert" \
--data-urlencode "text=An alert!" \