working minimal json with two existing hosts

This commit is contained in:
Johannes Findeisen 2013-05-30 00:30:19 +02:00
commit af8071a5ed

View file

@ -1,5 +1,5 @@
{ {
"services": {"ping": {"command": "ping @host"}}, "services": {"ping": {"command": "ping -c 1 @host"}},
"filters": "filters":
{ {
"email": "email":
@ -21,15 +21,15 @@
"periods": {"shortPeriod": {"seconds": 5, "comment": "Interval job; every 10 seconds"}}, "periods": {"shortPeriod": {"seconds": 5, "comment": "Interval job; every 10 seconds"}},
"hosts": "hosts":
{ {
"hanez1": {"host": "www1.hanez.org", "services": {"ping":[{}]}}, "a.systemchaos.org": {"host": "a.systemchaos.org", "services": {"ping":[{}]}},
"hanez2": {"host": "www2.hanez.org", "services": {}} "b.systemchaos.org": {"host": "b.systemchaos.org", "services": {"ping":[{}]}}
}, },
"hostgroups": "hostgroups":
{ {
"all": "all":
{ {
"members": ["hanez"], "members": ["hanez"],
"hosts": ["hanez1"], "hosts": ["a.systemchaos.org", "b.systemchaos.org"],
"threshold": 10, "threshold": 10,
"services": {"ping": ["shortPeriod"]} "services": {"ping": ["shortPeriod"]}
} }