Added etc.dev/ for development. All implemented options should go over to etc/ with full description.

This commit is contained in:
Johannes Findeisen 2023-02-20 07:53:09 +01:00
commit 2922cc930c
59 changed files with 201 additions and 0 deletions

View file

View 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

View file

View 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

View file

View file

@ -0,0 +1 @@
this file should not raise an error because it does has the .conf suffix. only .conf files should be processed.

View 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

View file

@ -0,0 +1,7 @@
[monitor]
description = Test10
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test11
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test12
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test13
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test14
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test15
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test16
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test17
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test18
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test19
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,8 @@
[monitor]
description = Test2
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 10
test_dummy_arg = nothing

View file

@ -0,0 +1,7 @@
[monitor]
description = Test20
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test21
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test22
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test23
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test24
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test25
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test26
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test27
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test28
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test29
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,8 @@
[monitor]
description = Test3
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 5
foo = bar

View file

@ -0,0 +1,7 @@
[monitor]
description = Test30
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test31
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test32
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test33
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test34
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test35
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test36
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test37
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test38
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test39
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test4
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 50

View file

@ -0,0 +1,7 @@
[monitor]
description = Test40
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 60

View file

@ -0,0 +1,7 @@
[monitor]
description = Test5
service = net.FritzboxUplink
hosts = 192.168.10.10
[args]
interval = 62

View file

@ -0,0 +1,7 @@
[monitor]
description = Test6
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 30

View file

@ -0,0 +1,7 @@
[monitor]
description = Test7
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 20

View file

@ -0,0 +1,7 @@
[monitor]
description = Test8
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 15

View file

@ -0,0 +1,7 @@
[monitor]
description = Test9
service = misc.dummy
hosts = 192.168.10.10
[args]
interval = 240