linspector-old/examples/minimal.json

70 lines
2.2 KiB
JSON
Raw Normal View History

{
"members":{
"homer":{
"name": "Homer Simpson",
"comment": "Security Inspector",
2013-07-02 00:19:20 +02:00
"tasks": [
2013-09-23 23:50:59 +02:00
{"class":"mail", "type": "donut", "args": {"rcpt": "homer_j_simpson@example.sp"}},
{"class":"mail", "type": "donut", "args": {"rcpt": "homer_j_simpson@example.sp"}}
2013-07-02 00:19:20 +02:00
]
}
},
"periods": {
"doh": {"seconds": 10, "comment": "OMG, this means work"},
"moes_time": {"minute":"0", "hour": "12", "day_of_week": "4", "comment": "much better"},
2013-06-21 01:57:32 +02:00
"marges_birthday": { "date": "2017-2-24 04:00:00"}
},
"hostgroups":{
"power_plant":{
"members": ["homer"],
2013-09-23 23:50:59 +02:00
"hosts": ["powerplant.example.com"],
"processors":[
2013-09-23 23:50:59 +02:00
{"class": "mongodb", "args":{ "host": "mongodb.example.org", "user": "homer", "password": "useless", "database": "default" }}
],
"services":[
{
"class": "ping",
"fails": {"donut": 2000},
2013-06-28 01:34:31 +02:00
"periods": ["doh"],
2013-07-02 23:30:31 +02:00
"threshold": 50
},
{
2013-06-28 01:34:31 +02:00
"class": "ping",
2013-07-02 23:30:31 +02:00
"fails": {"donut": 1000},
2013-06-28 01:34:31 +02:00
"periods": ["doh"],
2013-07-02 23:30:31 +02:00
"threshold": 100
},
{
"class": "tcpconnect",
"args": {"port": 23232},
2013-08-14 20:36:35 +02:00
"periods": ["doh"],
2013-07-02 23:30:31 +02:00
"fails": {"donut": 0},
"threshold": 0,
"comment": "my personal reminder, hehe"
}
]
}
},
"layouts":{
"main":{"hostgroups": ["power_plant"], "enabled": true}
2013-09-20 02:31:50 +02:00
},
"core":{
"max_logfile_size": 1024000,
"max_logfile_count": 4,
"max_worker_threads": 8,
"members":[ "root" ],
"tasks":{
"jabber":{
2013-09-23 23:50:59 +02:00
"host": "example.org",
2013-09-20 02:31:50 +02:00
"port": 5222,
"username": "USERNAME",
"password": "PASSWORD"
},
"mail":{
"host": "localhost",
"port": 25,
2013-09-23 23:50:59 +02:00
"from": "linspector@example.org"
2013-09-20 02:31:50 +02:00
}
}
}
}