61 lines
2.4 KiB
Text
61 lines
2.4 KiB
Text
[linspector]
|
|
; default monitor polling interval in seconds
|
|
default_interval = 300
|
|
; minimum monitor polling interval in seconds
|
|
minimum_interval = 10
|
|
; the time range in which all monitors will be scheduled in seconds
|
|
delta_range = 60
|
|
; number of errors until executing notifications
|
|
notification_error_threshold = 5
|
|
; "decrease" error countor or "reset" to 0 when a service is healthy again
|
|
notification_error_mode = decrease
|
|
|
|
start_scheduler = true
|
|
; the scheduler mode. process or thread (default: thread)
|
|
scheduler_mode = thread
|
|
; max processes is always 1 in thread scheduler mode (default: thread)
|
|
max_processes = 12
|
|
; max threads in each process (min.: 1)
|
|
max_threads = 2048
|
|
pid_file = /var/run/user/1000/linspector.pid
|
|
|
|
; logfile (do not set to disable logging)
|
|
logfile = /home/hanez/code/linspector/linspector/log/linspector.log
|
|
; number of logfiles to keep (default: 10)
|
|
logfile_count = 10
|
|
; logfile format. this overrides the default configured in the code
|
|
logfile_format = [{time:YYYY-MM-DD HH:mm:ss.SSSSSS ZZ}] [{elapsed}] [{level}] [linspector]: {message}
|
|
; log level (default: INFO)
|
|
logfile_level = INFO
|
|
; max logfile size (default: 1MB)
|
|
logfile_size = 5MB
|
|
|
|
; error logfile (do not set to disable error logging)
|
|
error_logfile = /home/hanez/code/linspector/linspector/log/error.log
|
|
; number of error logfiles to keep (default: 10)
|
|
error_logfile_count = 10
|
|
; error logfile format. this overrides the default configured in the code
|
|
error_logfile_format = [{time:YYYY-MM-DD HH:mm:ss.SSSSSS ZZ}] [{elapsed}] [{level}] [linspector] [{name}:{function}:{line}]: {message}
|
|
; max error logfile size (default: 1MB)
|
|
error_logfile_size = 5MB
|
|
|
|
; debug logfile (do not set to disable debug logging)
|
|
; this should never be enabled in a production environment but in case of errors it can be helpful to figure out what is wrong
|
|
debug_logfile = /home/hanez/code/linspector/linspector/log/debug.log
|
|
; number of debug logfiles to keep (default: 10)
|
|
debug_logfile_count = 3
|
|
; debug logfile format. this overrides the default configured in the code
|
|
debug_logfile_format = [{time:YYYY-MM-DD HH:mm:ss.SSSSSS ZZ}] [{elapsed}] [{level}] [linspector] [{name}:{function}:{line}]: {message}
|
|
; max debug logfile size (default: 1MB)
|
|
debug_logfile_size = 15MB
|
|
|
|
notifications =
|
|
|
|
plugins =
|
|
|
|
; the tasks to be executed after each monitors service execution
|
|
tasks = mysql
|
|
|
|
; timezone can be set to a remote timezone to make monitors run at the remote time. this can be overridden in each
|
|
; monitor configuration.
|
|
timezone = CET
|