moved json files to ./examples/ and added my personal json file
This commit is contained in:
parent
8c0b23abbe
commit
3925fbba0d
4 changed files with 38 additions and 1 deletions
37
examples/hanez.json
Normal file
37
examples/hanez.json
Normal 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}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue