Simple tool to poll services and report errors (by email and sms) if service is unreachable.
-
Clone from the Github.
-
Install dependencies with npm.
-
Set up configuration (see the next chapter).
Nag expects to find a properly formatted JSON configuration file in /etc/nag.conf with following properties:
-
poll_interval - The time to wait between polling services (in ms).
-
parallel_limit - The number of parallel poll requests.
-
mail_sender - Alert mail from field.
-
mail_recipients - A list of comma separated mail recipients.
-
mail_server_opts - A JSON object:
- user - Login name.
- password - Password.
- host - Mail server address.
- ssl - Value of either "true" of "false".
-
sms_recipients - A JSON array of phone numbers to send text message to.
-
Write decent readme
-
Validate configuration