Enabled loading of monitors in etc/, some refactoring and fixes.
This commit is contained in:
parent
7d5e372410
commit
2384c789a7
32 changed files with 167 additions and 28 deletions
43
etc.example/linspector.ini
Normal file
43
etc.example/linspector.ini
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
; all you need to know: https://docs.python.org/3/library/configparser.html ... ;)
|
||||
[linspector]
|
||||
; report core errors to the following users
|
||||
error_receivers = admin@example.com
|
||||
log_file = ~/code/linspector/log/linspector.log
|
||||
log_level= verbose
|
||||
log_count = 5
|
||||
log_size = 10485760
|
||||
pid_file = /var/run/user/1000/linspector.pid
|
||||
; default delimiters '=' and ':' should be changed to ',' to be more native
|
||||
plugins = HTTPServer
|
||||
tasks = MariaDB:Logger
|
||||
; 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
|
||||
run_mode = cron
|
||||
|
||||
; every notification can be configured in it's own ini file in etc/notifications; there no notification name as prefix
|
||||
; is needed. see email example.
|
||||
[notifications]
|
||||
; values can be overridden in each defined monitor
|
||||
sms_receivers = +number1:+number2
|
||||
sms_configuration_file = ~/linspector/etc/gammurc
|
||||
; retry to send interval and number of retries if something failed
|
||||
sms_resend = 10
|
||||
sms_resend_count = 5
|
||||
email_resend = 10
|
||||
|
||||
; every plugin can be configured in it's own ini file in etc/plugins; there no plugin name as prefix is needed. see
|
||||
; httpserver example.
|
||||
[plugins]
|
||||
|
||||
; if types can or must be configured before use; for now no use case seen.
|
||||
; every type can be configured in it's own ini file in etc/types; there no type name as prefix is not needed.
|
||||
[services]
|
||||
speedtest_interval = 3600
|
||||
speedtest_url = https://go.microsoft.com/fwlink/?Linkid=850641
|
||||
|
||||
[tasks]
|
||||
mariadb_database = linspector
|
||||
mariadb_host = 10.0.0.254
|
||||
mariadb_password = PASSWORD
|
||||
mariadb_port": 3306
|
||||
mariadb_user = USER
|
||||
Loading…
Add table
Add a link
Reference in a new issue