linspector-old/examples/dev.json

112 lines
No EOL
3.3 KiB
JSON

{
"members":{
"root":{
"name": "root",
"tasks": [
{
"class": "mail",
"type": "error",
"args": { "host": "localhost",
"port": 25,
"sender": "linspector@linspector.org",
"username": "",
"password": "",
"rcpt": "hanez@linspector.org"
}
},
{
"class": "mail",
"type": "warning",
"args": { "host": "localhost",
"sender": "linspector@linspector.org",
"rcpt": "warning@linspector.org"
}
},
{
"class": "mail",
"type": "ok",
"args": { "sender": "linspector@linspector.org",
"rcpt": "warning@linspector.org" }
}
]
},
"hannes":{
"name": "hannes",
"tasks": [
{
"class": "mail",
"type": "ok",
"args": { "rcpt": "warning@linspector.org" }
}
]
}
},
"periods": {
"fast": { "seconds": 15 },
"medium": { "seconds": 120 },
"slow": { "seconds": 480 }
},
"hostgroups":{
"a":{
"members": ["root", "hannes"],
"hosts": [ "a"],
"services":[
{
"class": "etc/dummy",
"periods": ["fast"],
"threshold": 1,
"args": { "sleep": 1, "fail": true }
},
{
"class": "etc/dummy",
"periods": ["fast"],
"threshold": 1,
"args": { "sleep": 10, "fail": false }
}
]
},
"b":{
"members": ["root", "hannes"],
"hosts": [ "b"],
"services":[
{
"class": "etc/dummy",
"periods": ["fast"],
"threshold": 1,
"args": { "sleep": 1, "fail": true }
},
{
"class": "etc/dummy",
"periods": ["fast"],
"threshold": 1,
"args": { "sleep": 10, "fail": false }
}
]
}
},
"layouts":{
"main":{
"hostgroups": [ "a" ],
"enabled": true
},
"gooo":{
"hostgroups": [ "b" ],
"enabled": false
}
},
"core":{
"instance_name": "Master Monitor 01 (monitor01.linspector.org)",
"threshold_handling": "reset",
"shutdown_wait": false,
"members":[ "linspector", "root" ],
"jsonrpc_backend": true,
"backends": {
"jsonrpc": {
"host": "127.0.0.1",
"port": 10123,
"username": "linspector",
"password": "linspector"
}
}
}
}