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
0
etc.example/monitors/.gitkeep
Normal file
0
etc.example/monitors/.gitkeep
Normal file
0
etc.example/monitors/network1/.gitkeep
Normal file
0
etc.example/monitors/network1/.gitkeep
Normal file
17
etc.example/monitors/network1/gateway.ini
Normal file
17
etc.example/monitors/network1/gateway.ini
Normal 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
|
||||
0
etc.example/monitors/network2/.gitkeep
Normal file
0
etc.example/monitors/network2/.gitkeep
Normal file
13
etc.example/monitors/network2/gateway.ini
Normal file
13
etc.example/monitors/network2/gateway.ini
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue