112 lines
No EOL
3.3 KiB
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": 1 }
|
|
},
|
|
{
|
|
"class": "etc/dummy",
|
|
"periods": ["fast"],
|
|
"threshold": 1,
|
|
"args": { "sleep": 10, "fail": 0 }
|
|
}
|
|
]
|
|
},
|
|
"b":{
|
|
"members": ["root", "hannes"],
|
|
"hosts": [ "b"],
|
|
"services":[
|
|
{
|
|
"class": "etc/dummy",
|
|
"periods": ["fast"],
|
|
"threshold": 1,
|
|
"args": { "sleep": 1, "fail": 1 }
|
|
},
|
|
{
|
|
"class": "etc/dummy",
|
|
"periods": ["fast"],
|
|
"threshold": 1,
|
|
"args": { "sleep": 10, "fail": 0 }
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"layouts":{
|
|
"main":{
|
|
"hostgroups": [ "a" ],
|
|
"enabled": true
|
|
},
|
|
"gooo":{
|
|
"hostgroups": [ "b" ],
|
|
"enabled": true
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
} |