From 39eb589b31f8634b506e56b8170f3bd3f435ced7 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Wed, 14 Aug 2013 21:39:11 +0200 Subject: [PATCH] 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. --- examples/hanez.json | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/examples/hanez.json b/examples/hanez.json index afb970d..d5d6649 100644 --- a/examples/hanez.json +++ b/examples/hanez.json @@ -1,37 +1,31 @@ { "members":{ - "homer":{ - "name": "hanez", - "comment": "Security Inspector", + "hanez":{ + "name": "Johannes Findeisen", "tasks": [ - {"class":"email", "type": "donut", "args": {"rcpt": "you@hanez.org"}} + { "class":"email", "type": "email", "args": { "rcpt": "you@hanez.org" }} ] } }, "periods": { - "always": {"seconds": 10, "comment": "OMG, this means work"} + "always": { "seconds": 5, "comment": "Yes, yes, yes!" } }, "hostgroups":{ - "power_plant":{ - "members": ["homer"], + "hanez":{ + "members": ["hanez"], "hosts": ["a.systemchaos.org"], - "processors":[ - {"class": "mongodb", "args":{ "host": "mongodb.hanez.org", "user": "homer", "password": "useless", "database": "default" }} - ], "services":[ { "class": "tcpconnect", - "args": {"port": 80}, + "args": { "port": 80 }, "periods": ["always"], - "fails": {"donut": 0}, - "threshold": 0, - "comment": "my personal reminder, hehe" + "fails": { "email": 0 }, + "threshold": 10 } ] } }, "layouts":{ - "main":{"hostgroups": ["power_plant"], "enabled": true} + "main":{ "hostgroups": ["hanez"], "enabled": true } } - } \ No newline at end of file