Only some fixes and cleanups.
This commit is contained in:
parent
2922cc930c
commit
da06e670d4
2 changed files with 6 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ def parse_args():
|
||||||
help='kill the daemon if it is running (default: false)')
|
help='kill the daemon if it is running (default: false)')
|
||||||
|
|
||||||
parser.add_argument('-r', '--restart', default=False, dest='restart', action='store_true',
|
parser.add_argument('-r', '--restart', default=False, dest='restart', action='store_true',
|
||||||
help='restart the daemon if it is running(default: false)')
|
help='restart the daemon if it is running (default: false)')
|
||||||
|
|
||||||
parser.add_argument('-s', '--stdout', default=False, dest='stdout', action='store_true',
|
parser.add_argument('-s', '--stdout', default=False, dest='stdout', action='store_true',
|
||||||
help='log to stdout')
|
help='log to stdout')
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,8 @@ scheduler_mode = process
|
||||||
; the default job interval can be set here. in the code 300 seconds are set when this option does not exist here nor in
|
; the default job interval can be set here. in the code 300 seconds are set when this option does not exist here nor in
|
||||||
; the monitor configuration.
|
; the monitor configuration.
|
||||||
default_interval = 5
|
default_interval = 5
|
||||||
|
; the minimum interval for monitors
|
||||||
|
minimum_interval = 1
|
||||||
max_threads = 2048
|
max_threads = 2048
|
||||||
; i recommend to set this to your number of CPU cores available when running on a dedicated Linspector host. but if the
|
; i recommend to set this to your number of CPU cores available when running on a dedicated Linspector host. but if the
|
||||||
; system is running other services you should lower this value when you have too high CPU load. if you have enough
|
; system is running other services you should lower this value when you have too high CPU load. if you have enough
|
||||||
|
|
@ -66,11 +68,11 @@ group1 = group2
|
||||||
[hostgroups]
|
[hostgroups]
|
||||||
; add single hosts
|
; add single hosts
|
||||||
group1 = host1,host2,host3
|
group1 = host1,host2,host3
|
||||||
; add a range of ip addresses. maybe a different range operator should be chosen but for now i think ">" is sexy... :)
|
; add a range of ip addresses.
|
||||||
; for ip ranges see: https://stackoverflow.com/questions/19157307/generate-range-of-ips-in-python
|
; for ip ranges see: https://stackoverflow.com/questions/19157307/generate-range-of-ips-in-python
|
||||||
group2 = 192.168.1.1>192.168.1.127
|
group2 = 192.168.1.1/28
|
||||||
; add a combination of hosts and ranges
|
; add a combination of hosts and ranges
|
||||||
group3 = host1,host2,host3,192.168.1.1>192.168.1.127
|
group3 = host1,host2,host3,192.168.1.1/28
|
||||||
; using groups inside groups. but need to take care about recursive dependencies.
|
; using groups inside groups. but need to take care about recursive dependencies.
|
||||||
group4 = host10,host11,host12,@group3
|
group4 = host10,host11,host12,@group3
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue