moved json files to ./examples/ and added my personal json file

This commit is contained in:
Johannes Findeisen 2013-08-14 21:04:00 +02:00
commit 8f56cbeef1
4 changed files with 38 additions and 1 deletions

37
examples/hanez.json Normal file
View file

@ -0,0 +1,37 @@
{
"members":{
"homer":{
"name": "hanez",
"comment": "Security Inspector",
"tasks": [
{"class":"email", "type": "donut", "args": {"rcpt": "you@hanez.org"}}
]
}
},
"periods": {
"always": {"seconds": 10, "comment": "OMG, this means work"}
},
"hostgroups":{
"power_plant":{
"members": ["homer"],
"hosts": ["a.systemchaos.org"],
"processors":[
{"class": "mongodb", "args":{ "host": "mongodb.hanez.org", "user": "homer", "password": "useless", "database": "default" }}
],
"services":[
{
"class": "tcpconnect",
"args": {"port": 80},
"periods": ["always"],
"fails": {"donut": 0},
"threshold": 0,
"comment": "my personal reminder, hehe"
}
]
}
},
"layouts":{
"main":{"hostgroups": ["power_plant"], "enabled": true}
}
}

View file

@ -1,7 +1,7 @@
#!/usr/bin/python2.7 -tt
__version__ = "0.4/TETRIS"
__default_config__ = "./minimal.json"
__default_config__ = "./examples/minimal.json"
import argparse
import time