minitor/sample-config.yml

35 lines
1.0 KiB
YAML
Raw Normal View History

2018-02-16 02:10:19 +00:00
check_interval: 30
2018-02-15 01:54:42 +00:00
2018-02-14 23:37:15 +00:00
monitors:
2018-02-16 02:10:19 +00:00
- name: My Website
command: [ 'curl', 'https://minitor.mon' ]
alerts: [ log, email, sms ]
check_interval: 30
alert_after: 3
2018-02-18 04:45:37 +00:00
alert_every: -1 # Defaults to -1 for exponential backoff
2018-02-14 23:37:15 +00:00
alerts:
email:
2018-02-16 02:10:19 +00:00
command: [ sendmail, "me@minitor.mon", "Failure: {monitor_name}", "This thing failed!" ]
mailgun:
command: >
curl -s -X POST
2018-02-17 01:49:33 +00:00
-F subject="Alert! {monitor_name} failed"
2018-02-16 02:10:19 +00:00
-F from="Minitor <minitor@minitor.mon>"
-F to=me@minitor.mon
-F text="Our monitor failed"
https://api.mailgun.net/v3/minitor.mon/messages
2018-02-17 01:49:33 +00:00
-u "api:${MAILGUN_API_KEY}"
2018-02-14 23:37:15 +00:00
sms:
2018-02-16 02:10:19 +00:00
command: >
curl -s -X POST -F "Body=Failure: {monitor_name} has failed"
-F "From=${AVAILABLE_NUMBER}" -F "To=${MY_PHONE}"
"https://api.twilio.com/2010-04-01/Accounts/${ACCOUNT_SID}/Messages"
-u "${ACCOUNT_SID}:${AUTH_TOKEN}"
2018-02-14 23:37:15 +00:00
2018-02-16 02:10:19 +00:00
# federation:
# - location: https://host1.com
# client_key: keyfromhost1
# server_key: keyhost1uses
# alerts: [ sms ]