fixed invalid key clash in linspector.minimal.NG.json, removed unnessesary stuff (null or none definitions)

This commit is contained in:
Rafael.Timmerberg 2013-06-04 22:04:29 +02:00
commit 94f20b8128

View file

@ -1,101 +1,155 @@
{ {
"filters": "filters":{
{ "email":{
"email": "command":"email @member @+message",
{ "comment":"Sends an E-Mail to the member.",
"command": "email @member @+message", "priority":1
"comment": "Sends an E-Mail to the member.",
"priority": 1
} }
}, },
"members": "members":{
{ "hanez":{
"hanez": "name":"Johannes Findeisen",
{ "comment":"Just a nerd doing admin stuff...",
"name": "Johannes Findeisen", "filters":{ "email":"you@hanez.org" }
"comment": "Just a nerd doing admin stuff...",
"filters": {"email": "you@hanez.org"}
} }
}, },
"periods": { "periods":{
"short": {"seconds": 5, "comment": "Interval job; every 10 seconds"}, "short":{
"middle": {"seconds": 60, "comment": "Interval job; every 60 seconds"}, "seconds":5,
"long": {"minutes": 2, "comment": "Interval job; every 2 minutes"} "comment":"Interval job; every 10 seconds"
}, },
"hostgroups": "middle":{
{ "seconds":60,
"group1": "comment":"Interval job; every 60 seconds"
{ },
"members": ["hanez"], "long":{
"hosts": ["a.systemchaos.org", "b.systemchaos.org"], "minutes":2,
"services": { "comment":"Interval job; every 2 minutes"
"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": "<h1>I am up!</h1>" },
"period": "long",
"fails": { },
"threshold": 2,
"parser": { "class": "none" },
"comment": "Just a string grep"}]
} }
}, },
"group2": "hostgroups":{
"group1":{
"members":[
"hanez"
],
"hosts":[
"a.systemchaos.org",
"b.systemchaos.org"
],
"services":[
{ {
"members": ["hanez"], "class":"ping",
"hosts": ["x.systemchaos.org", "y.systemchaos.org"], "fails":{ "warning":"100ms", "critical":"150ms" },
"services": { "periods": ["short"],
"ping":[{ "args": { }, "threshold":10,
"fails": { "warning": "100ms", "critical": "150ms" }, "parser":{ "class":"shell", "line":2, "col":5 }
"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"], "class":"tcpconnect",
"hosts": ["master.systemchaos.org"], "args":{ "port":80 },
"services": { "periods": ["middle"],
"ping":[{ "args": { }, "threshold":2,
"fails": { "warning": "60ms", "critical": "10ms" }, },
"period": "short", {
"threshold": 10, "class":"tcpconnect",
"parser": { "class": "shell", "line": 2, "col": 5 }}] "args":{ "port":25 },
"periods":["long"],
"threshold":2,
},
{
"class":"tcpconnect",
"args":{ "port":110 },
"periods": ["long"],
"threshold":2,
},
{
"class":"httpget",
"args":{ "port":80, "path":"/status.cgi", "string":"<h1>I am up!</h1>" },
"periods": ["long"],
"threshold":2,
"parser":{ "class":"StringCompare", "args": { "string":"<h1>I am up!</h1>" } },
"comment":"Just a string grep"
} }
]
} }
}, },
"layouts": { "group2":{
"production": {"hostgroups": ["group1"], "enabled": true}, "members":["hanez"],
"critical": {"hostgroups": ["group3"], "enabled": false}, "hosts":["x.systemchaos.org", "y.systemchaos.org"],
"all": {"hostgroups": ["group1", "group2", "group3"], "enabled": false} "services":[
{
"class":"ping",
"fails":{ "warning":"100ms", "critical":"150ms" },
"periods":["short"],
"threshold":10,
"parser":{ "class":"shell", "line":2, "col":5 }
}, },
"core": { {
"max_logfile_size": 1024000, "class":"tcpconnect",
"max_logfile_count": 4, "args":{ "port":2342 },
"max_worker_threads": 8, "periods":["long"],
"enabled_services": ["ping", "tcpconnect", "httpget", "shell", "ssh"] "threshold":2
}
]
},
"group3":{
"members":[
"hanez"
],
"hosts":[
"master.systemchaos.org"
],
"services":[
{
"class":"ping",
"fails":{
"warning":"60ms",
"critical":"10ms"
},
"periods":[
"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"
]
} }
} }