diff --git a/bin/linspector b/bin/linspector index f0e5786..67ed320 100755 --- a/bin/linspector +++ b/bin/linspector @@ -38,7 +38,7 @@ def parse_args(): help='kill the daemon if it is running (default: false)') 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', help='log to stdout') diff --git a/etc/linspector.conf b/etc/linspector.conf index 78697b6..03849d6 100644 --- a/etc/linspector.conf +++ b/etc/linspector.conf @@ -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 monitor configuration. default_interval = 5 +; the minimum interval for monitors +minimum_interval = 1 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 ; 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] ; add single hosts 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 -group2 = 192.168.1.1>192.168.1.127 +group2 = 192.168.1.1/28 ; 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. group4 = host10,host11,host12,@group3