Some more logging stuff...

This commit is contained in:
Johannes Findeisen 2022-10-05 05:50:13 +02:00
commit e665933bfb
9 changed files with 34 additions and 21 deletions

View file

@ -5,9 +5,10 @@ error_receivers = admin@example.com
; available log levels are: "error", "warning", "info" and "debug".
log_level= debug
log_file = ~/code/linspector/linspector/log/linspector.log
; number of log files to be kept.
; number of log files to be kept. i recommend to use the lowest sensible value for keeping performance hight. so set
; the size of the log file higher to increase the log history.
log_file_count = 50
; log file size in megabytes as int.
; log file size in megabytes as float.
log_file_size = 1
; log file size in bytes as int. you can set to bytes if you want to set a value lower then 1 megabyte. but it will
; only be used when log_file_size is not set.

View file

@ -7,7 +7,9 @@ service = net.fritzboxuplink
hosts = 192.168.0.1,192.168.23.24,@group1,@testgroup1
interval = 60
; optional options when using notifications, plugins, services or tasks:
; optional options when using notifications, plugins, services or tasks. btw. they still can be a required argument by
; a corresponding notification, plugin, service or task. they will need to check required args by themself and throw an
; exception if something fails. linspector never knows about required args:
[args]
; notifications separated by ','. no whitespaces allowed. the case is not important.
notifications = sms,emaiL

View file

@ -1,7 +1,7 @@
[monitor]
description = Test10
service = misc.dummy
interval = 60
interval = 120
hosts = 192.168.10.10
[args]

View file

@ -5,3 +5,4 @@ interval = 10
hosts = 192.168.10.10
[args]
test_dummy_arg = nothing

View file

@ -1,7 +1,8 @@
[monitor]
description = Test3
service = misc.dummy
interval = 120
interval = 5
hosts = 192.168.10.10
[args]
foo = bar