Enabled loading of monitors in etc/, some refactoring and fixes.

This commit is contained in:
Johannes Findeisen 2022-09-27 02:28:09 +02:00
commit 2384c789a7
32 changed files with 167 additions and 28 deletions

View file

View file

View file

@ -0,0 +1,17 @@
[main]
; identifiers must be unique in the whole configuration so maybe it is better to create a random string for this
; dynamically. identifiers should maybe a checksum of some options so they will not change when small changes to
; the configurations changes and will remain even when doing a fresh install.
identifier = cable
service = Fritzbox
interval = 60
# default delimiters '=' and ':' should be changed to ',' to be more native
notifications = SMS:Email
; values from main configuration can be overridden for each defined monitor
email_receivers = admin@example.com:fallback@example.com
sms_receivers = +329084320984:+39804932409
tasks = None
host = 192.168.0.1
user = USERNAME
password = PASSWORD
info = Cable Provider

View file

View file

@ -0,0 +1,13 @@
[main]
identifier = dsl
service = Fritzbox
interval = 60
# default delimiters '=' and ':' should be changed to ',' to be more native
notifications = SMS:Email
email_receivers = admin@example.com:fallback@example.com
sms_receivers = +329084320984:+39804932409
tasks = MariaDB:Logger:Redis
host = 192.168.1.1
user = USERNAME
password = PASSWORD
info = Cable Provider