Added dynamic loading of notifications and services, refactoring and lot of fixes.

This commit is contained in:
Johannes Findeisen 2022-09-27 06:07:55 +02:00
commit a0892d0980
57 changed files with 146 additions and 272 deletions

View file

@ -1,8 +1,7 @@
[main]
service = Fritzbox
[monitor]
service = FritzboxUplink
interval = 60
# default delimiters '=' and ':' should be changed to ',' to be more native
notifications = SMS:Email
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

View file

@ -1,9 +1,9 @@
[main]
[monitor]
identifier = dsl
service = Fritzbox
service = FritzboxUplink
interval = 60
# default delimiters '=' and ':' should be changed to ',' to be more native
notifications = SMS:Email
notifications = SMS,Email
email_receivers = admin@example.com:fallback@example.com
sms_receivers = +329084320984:+39804932409
tasks = MariaDB:Logger:Redis