aboutsummaryrefslogtreecommitdiff
path: root/monitor.cfg.example
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.cfg.example')
-rw-r--r--monitor.cfg.example27
1 files changed, 27 insertions, 0 deletions
diff --git a/monitor.cfg.example b/monitor.cfg.example
new file mode 100644
index 0000000..226a88e
--- /dev/null
+++ b/monitor.cfg.example
@@ -0,0 +1,27 @@
+# Monitor config
+# target=type,name,target
+
+# listen port
+port=8888
+
+# monitor interval in seconds (sleep)
+interval=5
+
+# monitor events log path
+log=events.log
+
+# targets to monitor
+target=reach,ipv4,2.59.235.35
+target=dns,dns,arf20.com
+target=web,http,http://arf20.com
+target=web,https,https://arf20.com
+
+# email From
+from=status@arf20.com
+
+# what to alert
+# alert=api,<url>,<content-type>,<body template>
+alert=api,https://arf20.com/%s,application/json,{"content":"%s is %s"}
+# alert=email,<address>,<subject template>,<body template>
+alert=email,arf20@arf20.com,%s is %s,%s is %s
+