moved not working old example config files to examples/old/

This commit is contained in:
Johannes Findeisen 2013-11-03 20:20:00 +01:00
commit 17e1d21037
8 changed files with 1303 additions and 0 deletions

87
examples/old/private.json Normal file
View file

@ -0,0 +1,87 @@
{
"members":{
"root":{
"name": "root",
"_tasks": [
{ "class":"jabber", "type": "jabber", "args": { "rcpt": "hanez@systemchaos.org" }}
]
},
"hanez":{
"name": "admin",
"_tasks": [
{ "class":"mail", "type": "mail", "args": { "rcpt": "you@hanez.org" }}
]
},
"linspector":{
"name": "linspector admin",
"_tasks": [
{ "class":"jabber", "type": "jabber", "args": { "rcpt": "hanez@systemchaos.org" }}
]
}
},
"periods": {
"fast": { "seconds": 10 },
"medium": { "seconds": 120 },
"slow": { "seconds": 480 }
},
"hostgroups":{
"a":{
"members": ["hanez"],
"hosts": [ "a" ],
"services":[
{
"class": "dummy",
"args": { "sleep": 3, "fail": 0 },
"periods": ["fast"],
"threshold": 3
}
]
}
},
"layouts":{
"main":{
"hostgroups": ["a"],
"enabled": true
}
},
"core":{
"instance_name": "Master Monitor 01 (monitor01.systemchaos.org)",
"max_logfile_size": 1024000,
"max_logfile_count": 4,
"max_worker_threads": 1000,
"threshold_handling": "reset",
"members":[ "linspector", "root" ],
"jsonrpc_backend": "True",
"backends": {
"jsonrpc": {
"_comment": "https://github.com/linspector/linspector/wiki/Configuration-Core-Backends-JsonRPC",
"host": "127.0.0.1",
"port": 10123,
"username": "linspector",
"password": "linspector"
}
},
"tasks": {
"jabber":{
"host": "systemchaos.org",
"port": 5222,
"username": "linspector",
"password": "linspector",
"debug": ["always"]
},
"mail":{
"host": "a.mx.systemchaos.org",
"port": 25,
"from": "linspector@systemchaos.org",
"username": "you@hanez.org",
"password": "uffff"
},
"tweet":{
"consumer_key": "consumer_key",
"consumer_secret": "consumer_secret",
"access_token_key": "access_token_key",
"access_token_secret": "access_token_secret"
}
}
}
}

132
examples/old/private.yaml Normal file
View file

@ -0,0 +1,132 @@
---
members:
root:
name: "root"
_tasks:
- class: "jabber"
type: "jabber"
args:
rcpt: "hanez@systemchaos.org"
hanez:
name: "admin"
_tasks:
- class: "mail"
type: "mail"
args:
rcpt: "you@hanez.org"
linspector:
name: "linspector admin"
_tasks:
- class: "jabber"
type: "jabber"
args:
rcpt: "hanez@systemchaos.org"
periods:
fast:
seconds: 10
medium:
seconds: 120
slow:
seconds: 480
hostgroups:
a:
members:
- "hanez"
hosts:
- "a.systemchaos.org"
services:
- class: "tcpconnect"
args:
port: 80
periods:
- "medium"
threshold: 2
- class: "tcpconnect"
args:
port: 23
periods:
- "fast"
threshold: 2
- class: "http"
args:
content: "<title>SYSTEdMCHAOS</title>"
periods:
- "fast"
threshold: 2
b:
members:
- "hanez"
hosts:
- "b.systemchaos.org"
services:
- class: "tcpconnect"
args:
port: 23
periods:
- "fast"
threshold: 2
- class: "tcpconnect"
args:
port: 80
periods:
- "fast"
threshold: 4
- class: "tcpconnect"
args:
port: 33
periods:
- "fast"
threshold: 4
c:
members:
- "hanez"
hosts:
- "c.systemchaos.org"
services:
- class: "tcpconnect"
args:
port: 23
periods:
- "fast"
threshold: 10
layouts:
main:
hostgroups: [ "a", "b", "c" ]
enabled: true
core:
instance_name: "Master Monitor 01 (monitor01.systemchaos.org)"
max_logfile_size: 1024000
max_logfile_count: 4
max_worker_threads: 8
jsonrpc_backend: True
shutdown_wait: False
members: [ "linspector", "root" ]
backends:
jsonrpc:
host: "127.0.0.1"
port: 10124
username: "linspector"
password: "linspector"
tasks:
jabber:
host: "systemchaos.org"
port: 5222
username: "linspector"
password: "linspector123"
debug:
- "always"
mail:
host: "localhost"
port: 25
from: "linspector@systemchaos.org"
username: ""
password: ""
tweet:
consumer_key: "consumer_key"
consumer_secret: "consumer_secret"
access_token_key: "access_token_key"
access_token_secret: "access_token_secret"

346
examples/old/privateX.json Normal file
View file

@ -0,0 +1,346 @@
{
"members":{
"root":{
"name": "root",
"_tasks": [
{ "class":"jabber", "type": "jabber", "args": { "rcpt": "hanez@systemchaos.org" }}
]
},
"hanez":{
"name": "admin",
"_tasks": [
{ "class":"mail", "type": "mail", "args": { "rcpt": "you@hanez.org" }}
]
},
"linspector":{
"name": "linspector admin",
"_tasks": [
{ "class":"jabber", "type": "jabber", "args": { "rcpt": "hanez@systemchaos.org" }}
]
}
},
"periods": {
"fast": { "seconds": 15 },
"medium": { "seconds": 120 },
"slow": { "seconds": 480 }
},
"hostgroups":{
"a":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"b":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"c":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"d":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"e":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"f":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"g":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"h":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"i":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"j":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"k":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"l":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"m":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"n":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
},
"o":{
"members": ["hanez"],
"hosts": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "v", "w",
"x", "y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh", "ii", "jj", "kk", "ll", "mm",
"nn", "oo", "pp", "qq", "vv", "ww", "xx", "yy", "zz" ],
"services":[
{ "class": "dummy", "args": { "sleep": 1, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 2, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 3, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 4, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 5, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 6, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 7, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 8, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 9, "fail": 1 }, "periods": ["fast"], "threshold": 3 },
{ "class": "dummy", "args": { "sleep": 10, "fail": 1 }, "periods": ["fast"], "threshold": 3 }
]
}
},
"layouts":{
"main":{
"hostgroups": [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o" ],
"enabled": true
}
},
"core":{
"instance_name": "Master Monitor 01 (monitor01.systemchaos.org)",
"max_logfile_size": 1024000,
"max_logfile_count": 4,
"max_worker_threads": 1000,
"threshold_handling": "reset",
"shutdown_wait": "False",
"members":[ "linspector", "root" ],
"jsonrpc_backend": "True",
"backends": {
"jsonrpc": {
"_comment": "https://github.com/linspector/linspector/wiki/Configuration-Core-Backends-JsonRPC",
"host": "127.0.0.1",
"port": 10123,
"username": "linspector",
"password": "linspector"
}
},
"tasks": {
"jabber":{
"host": "systemchaos.org",
"port": 5222,
"username": "linspector",
"password": "linspector",
"debug": ["always"]
},
"mail":{
"host": "a.mx.systemchaos.org",
"port": 25,
"from": "linspector@systemchaos.org",
"username": "you@hanez.org",
"password": "uffff"
},
"tweet":{
"consumer_key": "consumer_key",
"consumer_secret": "consumer_secret",
"access_token_key": "access_token_key",
"access_token_secret": "access_token_secret"
}
}
}
}

642
examples/old/privateX.yaml Normal file
View file

@ -0,0 +1,642 @@
---
members:
root:
name: "root"
_tasks:
- class: "jabber"
type: "jabber"
args:
rcpt: "hanez@systemchaos.org"
hanez:
name: "admin"
_tasks:
- class: "mail"
type: "mail"
args:
rcpt: "you@hanez.org"
linspector:
name: "linspector admin"
_tasks:
- class: "jabber"
type: "jabber"
args:
rcpt: "hanez@systemchaos.org"
periods:
fast:
seconds: 60
medium:
seconds: 120
slow:
seconds: 480
hostgroups:
a:
members:
- "hanez"
hosts:
- "a.systemchaos.org"
services:
- class: "tcpconnect"
args:
port: 80
periods:
- "medium"
threshold: 2
- class: "tcpconnect"
args:
port: 23
periods:
- "fast"
threshold: 2
b:
members:
- "hanez"
hosts:
- "b.systemchaos.org"
services:
- class: "tcpconnect"
args:
port: 23
periods:
- "fast"
threshold: 2
- class: "tcpconnect"
args:
port: 80
periods:
- "fast"
threshold: 4
- class: "tcpconnect"
args:
port: 33
periods:
- "fast"
threshold: 4
c:
members:
- "hanez"
hosts:
- "c.systemchaos.org"
services:
- class: "tcpconnect"
args:
port: 23
periods:
- "fast"
threshold: 10
d:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 231
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 241
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 251
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 261
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 271
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 281
periods:
- "fast"
threshold: 3
e:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 232
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 242
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 252
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 262
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 272
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 282
periods:
- "fast"
threshold: 3
f:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 233
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 243
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 253
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 263
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 273
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 283
periods:
- "fast"
threshold: 3
g:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 234
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 244
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 254
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 264
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 274
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 284
periods:
- "fast"
threshold: 3
h:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 235
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 245
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 255
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 265
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 275
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 285
periods:
- "fast"
threshold: 3
i:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 236
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 246
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 256
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 266
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 276
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 286
periods:
- "fast"
threshold: 3
j:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 237
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 247
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 257
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 267
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 277
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 287
periods:
- "fast"
threshold: 3
k:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 2371
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2471
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2571
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2671
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2771
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2871
periods:
- "fast"
threshold: 3
l:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 2372
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2472
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2572
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2672
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2772
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2872
periods:
- "fast"
threshold: 3
m:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 2373
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2473
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2573
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2673
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2773
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2873
periods:
- "fast"
threshold: 3
n:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 2374
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2474
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2574
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2674
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2774
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2874
periods:
- "fast"
threshold: 3
o:
members:
- "hanez"
hosts: [ "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "aa", "bb", "cc", "dd", "ee", "ff", "hh", "ii", "jj", "kk", "ll", "mm", "nn", "oo", "pp", "qq", "rr",
"ss", "tt", "vv", "ww", "xx", "yy", "zz" ]
services:
- class: "tcpconnect"
args:
port: 2375
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2475
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2575
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2675
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2775
periods:
- "fast"
threshold: 3
- class: "tcpconnect"
args:
port: 2875
periods:
- "fast"
threshold: 3
layouts:
main:
hostgroups: [ "a", "b", "c" , "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o" ]
enabled: true
core:
instance_name: "Master Monitor 01 (monitor01.systemchaos.org)"
max_logfile_size: 1024000
max_logfile_count: 4
max_worker_threads: 8
jsonrpc_backend: True
shutdown_wait: False
members: [ "linspector", "root" ]
backends:
jsonrpc:
host: "127.0.0.1"
port: 10123
username: "linspector"
password: "linspector"
tasks:
jabber:
host: "systemchaos.org"
port: 5222
username: "linspector"
password: "linspector123"
debug:
- "always"
mail:
host: "localhost"
port: 25
from: "linspector@systemchaos.org"
username: ""
password: ""
tweet:
consumer_key: "consumer_key"
consumer_secret: "consumer_secret"
access_token_key: "access_token_key"
access_token_secret: "access_token_secret"

View file

@ -0,0 +1,96 @@
---
members:
root:
name: "root"
_tasks:
- class: "jabber"
type: "jabber"
args:
rcpt: "hanez@systemchaos.org"
hanez:
name: "admin"
_tasks:
- class: "mail"
type: "mail"
args:
rcpt: "you@hanez.org"
linspector:
name: "linspector admin"
_tasks:
- class: "jabber"
type: "jabber"
args:
rcpt: "hanez@systemchaos.org"
periods:
fast:
seconds: 10
medium:
seconds: 120
slow:
seconds: 480
hostgroups:
ffffffffffffffffffff:
members:
- "hanez"
hosts:
- "a.systemchaos.org"
services:
- class: "http"
args:
content: "SYSTEMCHAOS"
periods:
- "fast"
threshold: 2
- class: "udpconnect"
args:
port: 23
periods:
- "fast"
threshold: 10
- class: "tcpconnect"
args:
port: 80
periods:
- "fast"
threshold: 10
layouts:
main:
hostgroups: [ "ffffffffffffffffffff" ]
enabled: true
core:
instance_name: "Master Monitor 01 (monitor01.systemchaos.org)"
max_logfile_size: 1024000
max_logfile_count: 4
max_worker_threads: 8
jsonrpc_backend: True
shutdown_wait: False
members: [ "linspector", "root" ]
backends:
jsonrpc:
host: "127.0.0.1"
port: 10124
username: "linspector"
password: "linspector"
tasks:
jabber:
host: "systemchaos.org"
port: 5222
username: "linspector"
password: "linspector123"
debug:
- "always"
mail:
host: "localhost"
port: 25
from: "linspector@systemchaos.org"
username: ""
password: ""
tweet:
consumer_key: "consumer_key"
consumer_secret: "consumer_secret"
access_token_key: "access_token_key"
access_token_secret: "access_token_secret"