75 lines
No EOL
2.4 KiB
JSON
75 lines
No EOL
2.4 KiB
JSON
{
|
|
"members":{
|
|
"homer":{
|
|
"name": "Homer Simpson",
|
|
"comment": "Security Inspector",
|
|
"tasks": [
|
|
{"class":"mail", "type": "donut", "args": {"rcpt": "homer_j_simpson@example.sp"}},
|
|
{"class":"mail", "type": "donut", "args": {"rcpt": "homer_j_simpson@example.sp"}}
|
|
]
|
|
}
|
|
},
|
|
"periods": {
|
|
"doh": {"seconds": 10, "comment": "OMG, this means work"},
|
|
"moes_time": {"minute":"0", "hour": "12", "day_of_week": "4", "comment": "much better"},
|
|
"marges_birthday": { "date": "2017-2-24 04:00:00"}
|
|
},
|
|
"hostgroups":{
|
|
"power_plant":{
|
|
"members": ["homer"],
|
|
"hosts": ["powerplant.example.com"],
|
|
"processors":[
|
|
{"class": "mongodb", "args":{ "host": "mongodb.example.org", "user": "homer", "password": "useless", "database": "default" }}
|
|
],
|
|
"services":[
|
|
{
|
|
"class": "ping",
|
|
"fails": {"donut": 2000},
|
|
"periods": ["doh"],
|
|
"threshold": 50
|
|
},
|
|
{
|
|
"class": "ping",
|
|
"fails": {"donut": 1000},
|
|
"periods": ["doh"],
|
|
"threshold": 100
|
|
},
|
|
{
|
|
"class": "tcpconnect",
|
|
"args": {"port": 23232},
|
|
"periods": ["doh"],
|
|
"fails": {"donut": 0},
|
|
"threshold": 0,
|
|
"comment": "my personal reminder, hehe"
|
|
},
|
|
{
|
|
"template": "tcpconnect_80",
|
|
"threshold": 10,
|
|
"periods": ["moes_time"],
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"layouts":{
|
|
"main":{"hostgroups": ["power_plant"], "enabled": true}
|
|
},
|
|
"core":{
|
|
"max_logfile_size": 1024000,
|
|
"max_logfile_count": 4,
|
|
"max_worker_threads": 8,
|
|
"members":[ "root" ],
|
|
"tasks":{
|
|
"jabber":{
|
|
"host": "example.org",
|
|
"port": 5222,
|
|
"username": "USERNAME",
|
|
"password": "PASSWORD"
|
|
},
|
|
"mail":{
|
|
"host": "localhost",
|
|
"port": 25,
|
|
"from": "linspector@example.org"
|
|
}
|
|
}
|
|
}
|
|
} |