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:
parent
98fa44f6ff
commit
947a14bdde
9 changed files with 38 additions and 22 deletions
|
|
@ -8,12 +8,12 @@ log_count = 5
|
|||
log_size = 10485760
|
||||
pid_file = /var/run/user/1000/linspector.pid
|
||||
; plugins separated by ','. no whitespaces allowed
|
||||
plugins = Lish
|
||||
plugins = lish,httpserver
|
||||
; globally configured tasks will always run on all monitors when no task is configured there. if tasks are configured in
|
||||
; a monitor then maybe only run tasks from the dedicated monitor. maybe it is a good idea to run global tasks in every
|
||||
; monitor and the monitor can add tasks to the global settings... need to think about it.
|
||||
; tasks separated by ','. no whitespaces allowed
|
||||
tasks = SQLite
|
||||
tasks = sqlite
|
||||
notification = SMS
|
||||
; maybe the run_mode is obsolete because this will be a daemon but maybe it is useful for one time execution?
|
||||
; in uplink the available run_modes were cron, daemon and foreground
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
[httpserver]
|
||||
ip = 127.0.0.1
|
||||
port = 4242
|
||||
port = 4242
|
||||
type=thread
|
||||
2
etc/plugins/lish.conf
Normal file
2
etc/plugins/lish.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[lish]
|
||||
type=none
|
||||
Loading…
Add table
Add a link
Reference in a new issue