2022-09-25 00:39:51 +02:00
|
|
|
[linspector]
|
2023-09-06 03:11:34 +02:00
|
|
|
; default monitor polling interval in seconds
|
2023-02-22 15:25:58 +01:00
|
|
|
default_interval = 300
|
2023-09-06 03:11:34 +02:00
|
|
|
; minimum monitor polling interval in seconds
|
2023-02-24 01:45:15 +01:00
|
|
|
minimum_interval = 10
|
2023-09-06 03:11:34 +02:00
|
|
|
; the time range in which all monitors are being sdcheduled 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
|
2023-02-24 01:45:15 +01:00
|
|
|
|
|
|
|
|
start_scheduler = true
|
2023-09-02 21:43:49 +02:00
|
|
|
; the scheduler mode. process or thread (default: thread)
|
2023-02-24 01:45:15 +01:00
|
|
|
scheduler_mode = thread
|
2023-09-02 21:43:49 +02:00
|
|
|
; max processes is alwys 1 in thread scheduler mode (default: thread)
|
|
|
|
|
max_processes = 12
|
|
|
|
|
; max threads in each process (min.: 1)
|
2022-10-03 12:31:47 +02:00
|
|
|
max_threads = 2048
|
2023-02-22 15:25:58 +01:00
|
|
|
pid_file = /var/run/user/1000/linspector.pid
|
2023-02-24 01:45:15 +01:00
|
|
|
|
2023-09-02 19:54:46 +02:00
|
|
|
; logfile (do not set to disable logging)
|
2023-02-24 01:45:15 +01:00
|
|
|
logfile = /home/hanez/code/linspector/linspector/log/linspector.log
|
|
|
|
|
; number of logfiles to keep (default: 10)
|
2023-09-01 17:05:15 +02:00
|
|
|
logfile_count = 10
|
2023-02-24 01:45:15 +01:00
|
|
|
; logfile format. this overrides the default configured in the code
|
2023-09-01 17:05:15 +02:00
|
|
|
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)
|
2023-09-02 19:54:46 +02:00
|
|
|
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
|
2023-02-24 01:45:15 +01:00
|
|
|
|
2023-09-06 08:14:57 +02:00
|
|
|
; 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
|
|
|
|
|
|
2023-02-24 01:45:15 +01:00
|
|
|
notifications =
|
2023-08-20 22:51:39 +02:00
|
|
|
|
2023-02-22 15:25:58 +01:00
|
|
|
plugins =
|
2023-08-20 22:51:39 +02:00
|
|
|
|
2023-08-31 22:30:05 +02:00
|
|
|
; the tasks to be executed after each monitors service execution
|
|
|
|
|
tasks = mysql
|
2022-09-28 08:27:51 +02:00
|
|
|
|
2023-05-30 02:44:52 +02:00
|
|
|
; timezone can be set to a remote timezone to make monitors run at the remote time. this can be overridden in each
|
|
|
|
|
; monitor configuration.
|
2023-07-15 00:39:53 +02:00
|
|
|
timezone = CET
|
2023-08-20 22:51:39 +02:00
|
|
|
|