More logging adjustments and improvements. (0.21.1)
This commit is contained in:
parent
ac99346ac9
commit
4f30af83db
9 changed files with 75 additions and 49 deletions
|
|
@ -1,35 +1,33 @@
|
|||
[linspector]
|
||||
default_interval = 300
|
||||
minimum_interval = 10
|
||||
delta_range = 10
|
||||
error_receivers = admin@example.com
|
||||
log_file_count = 20
|
||||
log_file_size = 1
|
||||
log_file_size_bytes = 100000
|
||||
log_level = info
|
||||
|
||||
start_scheduler = true
|
||||
scheduler_mode = thread
|
||||
max_processes = 1
|
||||
max_threads = 2048
|
||||
minimum_interval = 10
|
||||
notifications = email
|
||||
pid_file = /var/run/user/1000/linspector.pid
|
||||
|
||||
; log format. this overrides the default configured in the code
|
||||
log_format = <green>[{time:YYYY-MM-DD HH:mm:ss.SSSSSS ZZ}]</green> <yellow>[{elapsed}]</yellow> <magenta>[{level}]</magenta> <blue>[linspector]</blue> <cyan>[{name}:{function}:{line}]</cyan><red>:</red> {message}
|
||||
; log level for stderr logging (default: INFO)
|
||||
log_level = INFO
|
||||
; logfile to use
|
||||
logfile = /home/hanez/code/linspector/linspector/log/linspector.log
|
||||
; number of logfiles to keep (default: 10)
|
||||
logfile_count = 5
|
||||
; logfile format. this overrides the default configured in the code
|
||||
;logfile_format = [{time:YYYY-MM-DD HH:mm:ss.SSSSSS ZZ}] [{elapsed}] [{level}] [linspector] [{name}:{function}:{line}]: {message}
|
||||
; log level for file based logging
|
||||
logfile_level = DEBUG
|
||||
; size of logfiles (default: 1MB)
|
||||
logfile_size = 10MB
|
||||
|
||||
notifications =
|
||||
plugins =
|
||||
run_mode = cron
|
||||
scheduler_mode = thread
|
||||
start_scheduler = true
|
||||
tasks = mariadb
|
||||
timezone = CET
|
||||
tasks =
|
||||
|
||||
[hostgroupparents]
|
||||
|
||||
[hostgroups]
|
||||
|
||||
[membergroups]
|
||||
|
||||
[monitorgroups]
|
||||
|
||||
[notifications]
|
||||
|
||||
[plugins]
|
||||
|
||||
[services]
|
||||
|
||||
[tasks]
|
||||
; timezone can be set to a remote timezone to make monitors run at the remote time. this is optional. the local
|
||||
; timezone is set by default. this can be overridden in each monitor.
|
||||
;timezone = UTC
|
||||
|
|
|
|||
|
|
@ -3,8 +3,10 @@ title = Uplink Status
|
|||
description = Cable Provider Uplink Status
|
||||
service = vendor.avm.is_connected
|
||||
host = 192.168.1.1
|
||||
interval = 60
|
||||
interval = 5
|
||||
; the timezone can be set to the zone of the monitor target host to run at the remote time. this is optional. the
|
||||
; default is the local system timezone.
|
||||
;timezone = UTC
|
||||
|
||||
[args]
|
||||
host = 192.168.1.1
|
||||
password = PASSWORD
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
[monitor]
|
||||
title = Uplink Status
|
||||
description = DSL Provider Uplink Status
|
||||
description = Cable Provider Uplink Status
|
||||
service = vendor.avm.is_connected
|
||||
host = 192.168.2.1
|
||||
interval = 5
|
||||
interval = 13
|
||||
|
||||
[args]
|
||||
password = PASSWORD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue