From cb857b6d1013250c227c0383907eb746bf666897 Mon Sep 17 00:00:00 2001 From: Christoph Eck Date: Fri, 27 Mar 2020 20:19:06 +0100 Subject: [PATCH] fix: update readme --- example.config.json | 51 ++++++++++++++++++++++++++++++++++++++++++++- example.config.yml | 5 +++++ readme.md | 6 ++++++ 3 files changed, 61 insertions(+), 1 deletion(-) diff --git a/example.config.json b/example.config.json index ff43d90..4633ec6 100644 --- a/example.config.json +++ b/example.config.json @@ -7,6 +7,55 @@ "date_format": "02/01/2006 15:04:05 MST", "slack_webhook": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX", "monitors": [ + { + "name": "google", + "target": "https://google.com", + "strict": true, + "method": "POST", + "component_id": 1, + "metric_id": 4, + "template": { + "investigating": { + "subject": "{{ .Monitor.Name }} - {{ .SystemName }}", + "message": "{{ .Monitor.Name }} check **failed** (server time: {{ .now }})\n\n{{ .FailReason }}" + }, + "fixed": { + "subject": "I HAVE BEEN FIXED" + } + }, + "interval": 1, + "timeout": 1, + "threshold": 80, + "headers": { + "Authorization": "Basic " + }, + "expected_status_code": 200, + "expected_body": "P.*NG" + }, + { + "name": "dns", + "target": "matej.me.", + "question": "mx", + "type": "dns", + "component_id": 2, + "interval": 1, + "timeout": 1, + "dns": "8.8.4.4:53", + "answers": [ + { + "regex": "[1-9] alt[1-9].aspmx.l.google.com." + }, + { + "exact": "10 aspmx2.googlemail.com." + }, + { + "exact": "1 aspmx.l.google.com." + }, + { + "exact": "10 aspmx3.googlemail.com." + } + ] + }, { "name": "IN-Ulm IRC", "target": "irc.in-ulm.de", @@ -15,4 +64,4 @@ "component_id": 4 } ] -} +} \ No newline at end of file diff --git a/example.config.yml b/example.config.yml index e299631..10d4ad5 100644 --- a/example.config.yml +++ b/example.config.yml @@ -64,3 +64,8 @@ monitors: - exact: 10 aspmx2.googlemail.com. - exact: 1 aspmx.l.google.com. - exact: 10 aspmx3.googlemail.com. + - name: smtpnine + target: smtp.nine.ch + type: tcp + port: 25 + component_id: 4 diff --git a/readme.md b/readme.md index 79c67cb..fe50043 100644 --- a/readme.md +++ b/readme.md @@ -82,6 +82,12 @@ monitors: - exact: 10 aspmx2.googlemail.com. - exact: 1 aspmx.l.google.com. - exact: 10 aspmx3.googlemail.com. + # example tcp + - name: smtpnine + target: smtp.nine.ch + type: tcp + port: 25 + component_id: 4 ``` ## Installation