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:
Johannes Findeisen 2013-08-14 21:39:11 +02:00
commit 39eb589b31

View file

@ -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 }
} }
} }