From 100840e91c49024069e35d9e77ce8afa33800915 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Tue, 4 Jun 2013 07:53:33 +0200 Subject: [PATCH] the next generation of config???? --- linspector.minimal.NG.json | 101 +++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 linspector.minimal.NG.json diff --git a/linspector.minimal.NG.json b/linspector.minimal.NG.json new file mode 100644 index 0000000..38e9356 --- /dev/null +++ b/linspector.minimal.NG.json @@ -0,0 +1,101 @@ +{ + "filters": + { + "email": + { + "command": "email @member @+message", + "comment": "Sends an E-Mail to the member.", + "priority": 1 + } + }, + "members": + { + "hanez": + { + "name": "Johannes Findeisen", + "comment": "Just a nerd doing admin stuff...", + "filters": {"email": "you@hanez.org"} + } + }, + "periods": { + "short": {"seconds": 5, "comment": "Interval job; every 10 seconds"}, + "middle": {"seconds": 60, "comment": "Interval job; every 60 seconds"}, + "long": {"minutes": 2, "comment": "Interval job; every 2 minutes"} + }, + "hostgroups": + { + "group1": + { + "members": ["hanez"], + "hosts": ["a.systemchaos.org", "b.systemchaos.org"], + "services": { + "ping":[{ "args": { }, + "fails": { "warning": "100ms", "critical": "150ms" }, + "period": "short", + "threshold": 10, + "parser": { "class": "shell", "line": 2, "col": 5 }}], + "tcpconnect":[{ "args": { "port": 80 }, + "period": "middle", + "fails": { }, + "threshold": 2, + "parser": { "class": "none" }}], + "tcpconnect":[{ "args": { "port": 25 }, + "period": "long", + "fails": { }, + "threshold": 2, + "parser": { "class": "none" }}], + "tcpconnect":[{ "args": { "port": 110 }, + "period": "long", + "fails": { }, + "threshold": 2, + "parser": { "class": "none" }}], + "httpget":[{ "args": { "port": 80, "path": "/status.cgi", "string": "

I am up!

" }, + "period": "long", + "fails": { }, + "threshold": 2, + "parser": { "class": "none" }, + "comment": "Just a string grep"}] + } + }, + "group2": + { + "members": ["hanez"], + "hosts": ["x.systemchaos.org", "y.systemchaos.org"], + "services": { + "ping":[{ "args": { }, + "fails": { "warning": "100ms", "critical": "150ms" }, + "period": "short", + "threshold": 10, + "parser": { "class": "shell", "line": 2, "col": 5 }}], + "tcpconnect":[{ "args": { "port": 2342 }, + "period": "long", + "fails": { }, + "threshold": 2, + "parser": { "class": "none" }}] + } + }, + "group3": + { + "members": ["hanez"], + "hosts": ["master.systemchaos.org"], + "services": { + "ping":[{ "args": { }, + "fails": { "warning": "60ms", "critical": "10ms" }, + "period": "short", + "threshold": 10, + "parser": { "class": "shell", "line": 2, "col": 5 }}] + } + } + }, + "layouts": { + "production": {"hostgroups": ["group1"], "enabled": true}, + "critical": {"hostgroups": ["group3"], "enabled": false}, + "all": {"hostgroups": ["group1", "group2", "group3"], "enabled": false} + }, + "core": { + "max_logfile_size": 1024000, + "max_logfile_count": 4, + "max_worker_threads": 8, + "enabled_services": ["ping", "tcpconnect", "httpget", "shell", "ssh"] + } +} \ No newline at end of file