hanez.json is the most minimal and working json file. just change the port or host to something non existent and it will raise an error.
This commit is contained in:
parent
342e167cdd
commit
aa36902217
1 changed files with 10 additions and 16 deletions
|
|
@ -1,37 +1,31 @@
|
||||||
{
|
{
|
||||||
"members":{
|
"members":{
|
||||||
"homer":{
|
"hanez":{
|
||||||
"name": "hanez",
|
"name": "Johannes Findeisen",
|
||||||
"comment": "Security Inspector",
|
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{"class":"email", "type": "donut", "args": {"rcpt": "you@hanez.org"}}
|
{ "class":"email", "type": "email", "args": { "rcpt": "you@hanez.org" }}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"periods": {
|
"periods": {
|
||||||
"always": {"seconds": 10, "comment": "OMG, this means work"}
|
"always": { "seconds": 5, "comment": "Yes, yes, yes!" }
|
||||||
},
|
},
|
||||||
"hostgroups":{
|
"hostgroups":{
|
||||||
"power_plant":{
|
"hanez":{
|
||||||
"members": ["homer"],
|
"members": ["hanez"],
|
||||||
"hosts": ["a.systemchaos.org"],
|
"hosts": ["a.systemchaos.org"],
|
||||||
"processors":[
|
|
||||||
{"class": "mongodb", "args":{ "host": "mongodb.hanez.org", "user": "homer", "password": "useless", "database": "default" }}
|
|
||||||
],
|
|
||||||
"services":[
|
"services":[
|
||||||
{
|
{
|
||||||
"class": "tcpconnect",
|
"class": "tcpconnect",
|
||||||
"args": {"port": 80},
|
"args": { "port": 80 },
|
||||||
"periods": ["always"],
|
"periods": ["always"],
|
||||||
"fails": {"donut": 0},
|
"fails": { "email": 0 },
|
||||||
"threshold": 0,
|
"threshold": 10
|
||||||
"comment": "my personal reminder, hehe"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"layouts":{
|
"layouts":{
|
||||||
"main":{"hostgroups": ["power_plant"], "enabled": true}
|
"main":{ "hostgroups": ["hanez"], "enabled": true }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue