aboutsummaryrefslogtreecommitdiff
path: root/monitor.cfg.example
blob: 821f1088825a2f1c43453e5c8aa8083469bff16a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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
target=web,test,http://localhost:8989

# email From
mailfrom=ARFNET Status Monitor <status@arf20.com>
mailserver=smtps://mail.example.com:465
mailuser=username
mailpassword=password

# what to alert
# alert=api,<url>,<content-type>,<body template>
alert=api,https://discord.com/api/webhooks/example,application/json,{"content":"%s is %s"}
alert=api,https://api.telegram.org/botexample/sendMessage,application/json,{"chat_id": "exampleroom", "text": "%s is %s", "disable_notification": false}
# alert=email,<address>,<subject template>,<body template>
alert=email,it@example.com,%s is %s,%s is %s