diff options
| author | arf20 <aruizfernandez05@gmail.com> | 2025-11-10 00:28:43 +0100 |
|---|---|---|
| committer | arf20 <aruizfernandez05@gmail.com> | 2025-11-10 00:28:43 +0100 |
| commit | 2ad586295dcd5dcef3d29af32998d55bb5c09843 (patch) | |
| tree | 8b4128ad080bfa063f36ffb2ccc28642a87f19fc /monitor.cfg.example | |
| parent | c766bf7134b8179401b7e05f00d5a3693e2b56f4 (diff) | |
| download | arfnet2-status-2ad586295dcd5dcef3d29af32998d55bb5c09843.tar.gz arfnet2-status-2ad586295dcd5dcef3d29af32998d55bb5c09843.zip | |
WIP api alert
Diffstat (limited to 'monitor.cfg.example')
| -rw-r--r-- | monitor.cfg.example | 27 |
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 + |
