some new ideas in linspector.json
This commit is contained in:
parent
8ba987f572
commit
0d5abb5f3b
1 changed files with 21 additions and 30 deletions
|
|
@ -1,22 +1,11 @@
|
||||||
{
|
{
|
||||||
"tasks":{
|
|
||||||
"email":{
|
|
||||||
"command": "email @member @+message",
|
|
||||||
"comment": "Sends an E-Mail to a member.",
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"sms":{
|
|
||||||
"command": "sms @member @+message",
|
|
||||||
"comment": "Sends a SMS to a member.",
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"mongodb":{
|
|
||||||
"command": "mongodb @host @user @password @+rawdata",
|
|
||||||
"comment": "Stores the rawdata in a MongoDB database.",
|
|
||||||
"priority": 1000
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"members":{
|
"members":{
|
||||||
|
"root":{
|
||||||
|
"name": "Admin",
|
||||||
|
"comment": "The Linspector Admin",
|
||||||
|
"tasks":[{ "class": "email", "args": { "rcpt": "admin@systems.hanez.org" }},
|
||||||
|
{ "class": "sms","args": { "rcpt": "+49112" }}]
|
||||||
|
},
|
||||||
"hanez":{
|
"hanez":{
|
||||||
"name": "Johannes Findeisen",
|
"name": "Johannes Findeisen",
|
||||||
"comment": "Just a nerd doing admin stuff.",
|
"comment": "Just a nerd doing admin stuff.",
|
||||||
|
|
@ -28,11 +17,6 @@
|
||||||
"name": "Darth Vader",
|
"name": "Darth Vader",
|
||||||
"comment": "The father",
|
"comment": "The father",
|
||||||
"tasks":{ "class": "email", "args": { "rcpt": "darth.vader@hanez.org" }}
|
"tasks":{ "class": "email", "args": { "rcpt": "darth.vader@hanez.org" }}
|
||||||
},
|
|
||||||
"mongodb":{
|
|
||||||
"name": "MongoDB",
|
|
||||||
"comment": "The writer to a MongoDB",
|
|
||||||
"tasks":{ "class": "mongodb", "args": { "host": "localhost", "user": "root", "password": "root" }}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"periods":{
|
"periods":{
|
||||||
|
|
@ -46,6 +30,12 @@
|
||||||
"members":[ "hanez", "mongodb" ],
|
"members":[ "hanez", "mongodb" ],
|
||||||
"hosts":[ "a.systemchaos.org", "b.systemchaos.org" ],
|
"hosts":[ "a.systemchaos.org", "b.systemchaos.org" ],
|
||||||
"parents":[ "network" ],
|
"parents":[ "network" ],
|
||||||
|
"processors":[
|
||||||
|
{
|
||||||
|
"class": "mongodb",
|
||||||
|
"args": { "host": "mongodb.hanez.org", "user": "mongo", "password": "secret", "database": "default"}
|
||||||
|
}
|
||||||
|
],
|
||||||
"services":[
|
"services":[
|
||||||
{
|
{
|
||||||
"class":"ping",
|
"class":"ping",
|
||||||
|
|
@ -140,13 +130,14 @@
|
||||||
"enabled": false
|
"enabled": false
|
||||||
},
|
},
|
||||||
"all":{
|
"all":{
|
||||||
"hostgroups": [ "group1", "group2", "group3" ],
|
"hostgroups": [ "group1", "group2", "group3", "network" ],
|
||||||
"enabled": false
|
"enabled": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"core":{
|
"core":{
|
||||||
"max_logfile_size": 1024000,
|
"max_logfile_size": 1024000,
|
||||||
"max_logfile_count": 4,
|
"max_logfile_count": 4,
|
||||||
"max_worker_threads": 8
|
"max_worker_threads": 8,
|
||||||
|
"members": [ "root" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue