Added some more testing stuff and tried different cong values. Some ideas added to comments too.
This commit is contained in:
parent
956cfbfaa9
commit
b414997545
34 changed files with 222 additions and 6 deletions
|
|
@ -5,6 +5,8 @@ Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
|
||||||
See LICENSE.txt (MIT license).
|
See LICENSE.txt (MIT license).
|
||||||
"""
|
"""
|
||||||
# TODO: VERY IMPORTANT! IMPLEMENT ERROR HANDLING ALL THE WAY...!!!
|
# TODO: VERY IMPORTANT! IMPLEMENT ERROR HANDLING ALL THE WAY...!!!
|
||||||
|
# Only exit execution on critical core errors. Do not exit when monitors are failing on
|
||||||
|
# configuration and execution, but log these errors.
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,11 +46,12 @@ max_threads = 2048
|
||||||
max_processes = 24
|
max_processes = 24
|
||||||
; if timezone is not set, UTC is used by default.
|
; if timezone is not set, UTC is used by default.
|
||||||
timezone = CET
|
timezone = CET
|
||||||
; this is for scheduling jobs to not run all at the same time. this should be set to the lowest interval you use. it
|
; this is for scheduling jobs to not run all at the same time. this should not be set lower then the lowest interval
|
||||||
; can be set to a lower value if you only have a small amount of services you are monitoring. i recommend the lowest
|
; you use in monitors. it can be set to a lower value if you only have a small amount of services you are monitoring.
|
||||||
; interval you use any any monitor. it is always starting with 0. default is 60. the current setting is for development
|
; i recommend the lowest interval you use in any monitor but higher values will reduce cpu load when using monitors
|
||||||
; only.
|
; with a higher value then the delta_range. it is always starting with 0. default is 60. the current setting is for
|
||||||
delta_range = 10
|
; development only.
|
||||||
|
delta_range = 60
|
||||||
|
|
||||||
; hostgroup parents; if the hostgroup "group1" is down, don't alert for the hosts in group2. see TODO.txt for more
|
; hostgroup parents; if the hostgroup "group1" is down, don't alert for the hosts in group2. see TODO.txt for more
|
||||||
; information.
|
; information.
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
; required options:
|
; required options:
|
||||||
[monitor]
|
[monitor]
|
||||||
|
; Currently not used but should replace current usage of description. The description should be optional...
|
||||||
|
title = The Monitor Title
|
||||||
; The description must not but should be a unique description of the monitor for better identifying it in the datastore
|
; The description must not but should be a unique description of the monitor for better identifying it in the datastore
|
||||||
; if a task is being used.
|
; if a task is being used.
|
||||||
description = Cable Provider
|
description = Cable Provider Uplink Status
|
||||||
service = net.fritzboxuplink
|
service = net.fritzboxuplink
|
||||||
hosts = 192.168.0.1,192.168.23.24,@group1,@testgroup1
|
hosts = 192.168.0.1,192.168.23.24,@group1,@testgroup1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,3 +4,4 @@ service = misc.dummy
|
||||||
hosts = 192.168.10.10
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
[args]
|
[args]
|
||||||
|
interval = 60
|
||||||
|
|
|
||||||
7
etc/monitors/test/test11.conf
Normal file
7
etc/monitors/test/test11.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test11
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test12.conf
Normal file
7
etc/monitors/test/test12.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test12
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test13.conf
Normal file
7
etc/monitors/test/test13.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test13
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test14.conf
Normal file
7
etc/monitors/test/test14.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test14
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test15.conf
Normal file
7
etc/monitors/test/test15.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test15
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test16.conf
Normal file
7
etc/monitors/test/test16.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test16
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test17.conf
Normal file
7
etc/monitors/test/test17.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test17
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test18.conf
Normal file
7
etc/monitors/test/test18.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test18
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test19.conf
Normal file
7
etc/monitors/test/test19.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test19
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test20.conf
Normal file
7
etc/monitors/test/test20.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test20
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test21.conf
Normal file
7
etc/monitors/test/test21.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test21
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test22.conf
Normal file
7
etc/monitors/test/test22.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test22
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test23.conf
Normal file
7
etc/monitors/test/test23.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test23
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test24.conf
Normal file
7
etc/monitors/test/test24.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test24
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test25.conf
Normal file
7
etc/monitors/test/test25.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test25
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test26.conf
Normal file
7
etc/monitors/test/test26.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test26
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test27.conf
Normal file
7
etc/monitors/test/test27.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test27
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test28.conf
Normal file
7
etc/monitors/test/test28.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test28
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test29.conf
Normal file
7
etc/monitors/test/test29.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test29
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test30.conf
Normal file
7
etc/monitors/test/test30.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test30
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test31.conf
Normal file
7
etc/monitors/test/test31.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test31
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test32.conf
Normal file
7
etc/monitors/test/test32.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test32
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test33.conf
Normal file
7
etc/monitors/test/test33.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test33
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test34.conf
Normal file
7
etc/monitors/test/test34.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test34
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test35.conf
Normal file
7
etc/monitors/test/test35.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test35
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test36.conf
Normal file
7
etc/monitors/test/test36.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test36
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test37.conf
Normal file
7
etc/monitors/test/test37.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test37
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test38.conf
Normal file
7
etc/monitors/test/test38.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test38
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test39.conf
Normal file
7
etc/monitors/test/test39.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test39
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
7
etc/monitors/test/test40.conf
Normal file
7
etc/monitors/test/test40.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[monitor]
|
||||||
|
description = Test40
|
||||||
|
service = misc.dummy
|
||||||
|
hosts = 192.168.10.10
|
||||||
|
|
||||||
|
[args]
|
||||||
|
interval = 60
|
||||||
Loading…
Add table
Add a link
Reference in a new issue