Added dynamic plugin loading. Made all dict keys lowercase so configuation keys are not case sensitive. And even some fixes.

This commit is contained in:
Johannes Findeisen 2022-09-27 23:19:10 +02:00
commit 947a14bdde
9 changed files with 38 additions and 22 deletions

View file

@ -1,10 +1,10 @@
[monitor]
; currently i get errors when the service option is not spelled correct. error handling need to fix this. same for
; notifications and tasks.
service = FritzboxUplink
service = fritzboxuplink
interval = 60
; notifications separated by ','. no whitespaces allowed
notifications = SMS,Email
; notifications separated by ','. no whitespaces allowed. the case is not important.
notifications = sMs,Email
; values from main configuration can be overridden for each defined monitor
; email_receivers separated by ','. no whitespaces allowed
email_receivers = admin@example.com,fallback@example.com
@ -12,7 +12,7 @@ email_receivers = admin@example.com,fallback@example.com
sms_receivers = +329084320984,+39804932409
; setting to None fails. just do not set this option. currently i get an error when tasks is not set here. need to be
; fixed. setting it like below works but is no good design for optional options. same for notifications.
tasks = Redis
tasks = redis
; maybe this should be some kind of range too, for example for the ping service like: 10.0.0.1-10.0.0.42 or more
; sophisticated kind of ranges... i will find a solution for that... like host groups in the old version of Linspector
; so we don't need to add a monitor for each host... but it would be a good idea to expose these hosts to become a