minitor/sample-config.yml

35 lines
986 B
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
alert_every: 4
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
-F subject="Alert! {alert_name} failed"
-F from="Minitor <minitor@minitor.mon>"
-F to=me@minitor.mon
-F text="Our monitor failed"
https://api.mailgun.net/v3/minitor.mon/messages
-u "api:${TWILIO_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 ]