Added etc.dev/ for development. All implemented options should go over to etc/ with full description.
This commit is contained in:
parent
6c8598c752
commit
2922cc930c
59 changed files with 201 additions and 0 deletions
0
etc.dev/monitors/network1/.gitkeep
Normal file
0
etc.dev/monitors/network1/.gitkeep
Normal file
37
etc.dev/monitors/network1/gateway.conf
Normal file
37
etc.dev/monitors/network1/gateway.conf
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
; required options:
|
||||
[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
|
||||
; if a task is being used.
|
||||
description = Cable Provider Uplink Status
|
||||
service = net.fritzboxuplink
|
||||
hosts = 192.168.0.1,192.168.23.24,@group1,@testgroup1
|
||||
|
||||
; optional options when using notifications, plugins, services or tasks. btw. they still can be a required argument by
|
||||
; a corresponding notification, plugin, service or task. they will need to check required args by themself and throw an
|
||||
; exception if something fails. linspector never knows about required args:
|
||||
[args]
|
||||
; this only depends on the SLA you made with the product owner. this option is optional. the default is 300 seconds.
|
||||
interval = 60
|
||||
; notifications separated by ','. no whitespaces allowed. the case is not important.
|
||||
notifications = sms,emaiL
|
||||
; values from main configuration can be overridden for each defined monitor
|
||||
; email_receivers separated by ','. no whitespaces allowed
|
||||
email_receivers = admin@example.com,fallback@example.com
|
||||
; sms_receivers separated by ','. no whitespaces allowed
|
||||
sms_receivers = +number1,+number2
|
||||
; setting to None fails. just do not set this option. currently i get an error when tasks is not set here. need to be
|
||||
; fixed. setting it like below works but is no good design for optional options. same for notifications.
|
||||
tasks = redis
|
||||
; maybe this should be some kind of range too, for example for the ping service like: 10.0.0.1>10.0.0.42 or more
|
||||
; sophisticated kind of ranges... i will find a solution for that... like host groups in the old version of Linspector
|
||||
; so we don't need to add a monitor for each host... but it would be a good idea to expose these to hostgroups
|
||||
; internally to single hosts to become a monitor for each host internally. some more ideas are in ;)
|
||||
; hosts with added hostgroup defined in main configuration file
|
||||
; monitors can add their self into a hostgroup
|
||||
hostgroups = group1
|
||||
user = USERNAME
|
||||
password = PASSWORD
|
||||
; only alert when the error reaches the threshold
|
||||
threshold = 3
|
||||
0
etc.dev/monitors/network2/.gitkeep
Normal file
0
etc.dev/monitors/network2/.gitkeep
Normal file
14
etc.dev/monitors/network2/gateway.conf
Normal file
14
etc.dev/monitors/network2/gateway.conf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[monitor]
|
||||
description = Cable Provider
|
||||
service = Net.FritzboxUplink
|
||||
hosts = 192.168.1.1
|
||||
|
||||
[args]
|
||||
interval = 60
|
||||
notifications = email
|
||||
email_receivers = admin@example.com,fallback@example.com
|
||||
sms_receivers = +number1,+number2
|
||||
tasks = mariadb,file
|
||||
user = USERNAME
|
||||
password = PASSWORD
|
||||
hostgroups = group1
|
||||
0
etc.dev/monitors/test/.gitkeep
Normal file
0
etc.dev/monitors/test/.gitkeep
Normal file
1
etc.dev/monitors/test/test1
Normal file
1
etc.dev/monitors/test/test1
Normal file
|
|
@ -0,0 +1 @@
|
|||
this file should not raise an error because it does has the .conf suffix. only .conf files should be processed.
|
||||
14
etc.dev/monitors/test/test1.conf
Normal file
14
etc.dev/monitors/test/test1.conf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
; required options
|
||||
[monitor]
|
||||
description = Test1
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
; optional options
|
||||
[args]
|
||||
interval = 13
|
||||
; the start is to schedule the execution of the monitor in at a date in the future. this is helpful to configure
|
||||
; linspector before a host is up and running.
|
||||
start_date = 1999-04-23 23:42:42
|
||||
; every monitor should be able to override the timezone being set by core configuration or the default setting.
|
||||
timezone = EST
|
||||
7
etc.dev/monitors/test/test10.conf
Normal file
7
etc.dev/monitors/test/test10.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[monitor]
|
||||
description = Test10
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 60
|
||||
7
etc.dev/monitors/test/test11.conf
Normal file
7
etc.dev/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.dev/monitors/test/test12.conf
Normal file
7
etc.dev/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.dev/monitors/test/test13.conf
Normal file
7
etc.dev/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.dev/monitors/test/test14.conf
Normal file
7
etc.dev/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.dev/monitors/test/test15.conf
Normal file
7
etc.dev/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.dev/monitors/test/test16.conf
Normal file
7
etc.dev/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.dev/monitors/test/test17.conf
Normal file
7
etc.dev/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.dev/monitors/test/test18.conf
Normal file
7
etc.dev/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.dev/monitors/test/test19.conf
Normal file
7
etc.dev/monitors/test/test19.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[monitor]
|
||||
description = Test19
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 60
|
||||
8
etc.dev/monitors/test/test2.conf
Normal file
8
etc.dev/monitors/test/test2.conf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[monitor]
|
||||
description = Test2
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 10
|
||||
test_dummy_arg = nothing
|
||||
7
etc.dev/monitors/test/test20.conf
Normal file
7
etc.dev/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.dev/monitors/test/test21.conf
Normal file
7
etc.dev/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.dev/monitors/test/test22.conf
Normal file
7
etc.dev/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.dev/monitors/test/test23.conf
Normal file
7
etc.dev/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.dev/monitors/test/test24.conf
Normal file
7
etc.dev/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.dev/monitors/test/test25.conf
Normal file
7
etc.dev/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.dev/monitors/test/test26.conf
Normal file
7
etc.dev/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.dev/monitors/test/test27.conf
Normal file
7
etc.dev/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.dev/monitors/test/test28.conf
Normal file
7
etc.dev/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.dev/monitors/test/test29.conf
Normal file
7
etc.dev/monitors/test/test29.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[monitor]
|
||||
description = Test29
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 60
|
||||
8
etc.dev/monitors/test/test3.conf
Normal file
8
etc.dev/monitors/test/test3.conf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[monitor]
|
||||
description = Test3
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 5
|
||||
foo = bar
|
||||
7
etc.dev/monitors/test/test30.conf
Normal file
7
etc.dev/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.dev/monitors/test/test31.conf
Normal file
7
etc.dev/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.dev/monitors/test/test32.conf
Normal file
7
etc.dev/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.dev/monitors/test/test33.conf
Normal file
7
etc.dev/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.dev/monitors/test/test34.conf
Normal file
7
etc.dev/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.dev/monitors/test/test35.conf
Normal file
7
etc.dev/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.dev/monitors/test/test36.conf
Normal file
7
etc.dev/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.dev/monitors/test/test37.conf
Normal file
7
etc.dev/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.dev/monitors/test/test38.conf
Normal file
7
etc.dev/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.dev/monitors/test/test39.conf
Normal file
7
etc.dev/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.dev/monitors/test/test4.conf
Normal file
7
etc.dev/monitors/test/test4.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[monitor]
|
||||
description = Test4
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 50
|
||||
7
etc.dev/monitors/test/test40.conf
Normal file
7
etc.dev/monitors/test/test40.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[monitor]
|
||||
description = Test40
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 60
|
||||
7
etc.dev/monitors/test/test5.conf
Normal file
7
etc.dev/monitors/test/test5.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[monitor]
|
||||
description = Test5
|
||||
service = net.FritzboxUplink
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 62
|
||||
7
etc.dev/monitors/test/test6.conf
Normal file
7
etc.dev/monitors/test/test6.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[monitor]
|
||||
description = Test6
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 30
|
||||
7
etc.dev/monitors/test/test7.conf
Normal file
7
etc.dev/monitors/test/test7.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[monitor]
|
||||
description = Test7
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 20
|
||||
7
etc.dev/monitors/test/test8.conf
Normal file
7
etc.dev/monitors/test/test8.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[monitor]
|
||||
description = Test8
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 15
|
||||
7
etc.dev/monitors/test/test9.conf
Normal file
7
etc.dev/monitors/test/test9.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[monitor]
|
||||
description = Test9
|
||||
service = misc.dummy
|
||||
hosts = 192.168.10.10
|
||||
|
||||
[args]
|
||||
interval = 240
|
||||
Loading…
Add table
Add a link
Reference in a new issue