added var to core an some design fixes
This commit is contained in:
parent
7de6a3717b
commit
8678f5e4a6
1 changed files with 118 additions and 136 deletions
|
|
@ -1,138 +1,120 @@
|
|||
---
|
||||
members:
|
||||
|
||||
root:
|
||||
name: "root"
|
||||
tasks:
|
||||
- class: "jabber"
|
||||
type: "jabber"
|
||||
args:
|
||||
rcpt: "hanez@example.org"
|
||||
|
||||
hanez:
|
||||
name: "admin"
|
||||
tasks:
|
||||
- class: "mail"
|
||||
type: "mail"
|
||||
args:
|
||||
rcpt: "admin@example.org"
|
||||
|
||||
linspector:
|
||||
name: "linspector admin"
|
||||
tasks:
|
||||
- class: "jabber"
|
||||
type: "jabber"
|
||||
args:
|
||||
rcpt: "hanez@example.org"
|
||||
periods:
|
||||
fast:
|
||||
seconds: 2
|
||||
|
||||
medium:
|
||||
seconds: 120
|
||||
|
||||
slow:
|
||||
seconds: 480
|
||||
|
||||
hostgroups:
|
||||
|
||||
a:
|
||||
members:
|
||||
- "hanez"
|
||||
hosts:
|
||||
- "a.example.org"
|
||||
services:
|
||||
- class: "tcpconnect"
|
||||
args:
|
||||
port: 80
|
||||
periods:
|
||||
- "medium"
|
||||
threshold: 2
|
||||
|
||||
b:
|
||||
members:
|
||||
- "hanez"
|
||||
hosts:
|
||||
- "b.example.org"
|
||||
services:
|
||||
- class: "tcpconnect"
|
||||
args:
|
||||
port: 23
|
||||
periods:
|
||||
- "fast"
|
||||
threshold: 2
|
||||
|
||||
- class: "tcpconnect"
|
||||
args:
|
||||
port: 80
|
||||
periods:
|
||||
- "fast"
|
||||
threshold: 4
|
||||
|
||||
- class: "tcpconnect"
|
||||
args:
|
||||
port: 23
|
||||
periods:
|
||||
- "fast"
|
||||
threshold: 4
|
||||
c:
|
||||
members:
|
||||
- "hanez"
|
||||
hosts:
|
||||
- "c.example.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.example.org)"
|
||||
max_logfile_size: 1024000
|
||||
max_logfile_count: 4
|
||||
max_worker_threads: 8
|
||||
|
||||
members:
|
||||
- "linspector"
|
||||
- "root"
|
||||
|
||||
backends:
|
||||
jsonrpc:
|
||||
host: "127.0.0.1"
|
||||
port: "2323"
|
||||
username: "linspector"
|
||||
password: "linspector"
|
||||
|
||||
members:
|
||||
root:
|
||||
name: "root"
|
||||
tasks:
|
||||
jabber:
|
||||
host: "example.org"
|
||||
port: 5222
|
||||
username: "linspector"
|
||||
password: "linspector"
|
||||
debug:
|
||||
- "always"
|
||||
|
||||
mail:
|
||||
host: "localhost"
|
||||
port: 25
|
||||
from: "linspector@example.org"
|
||||
username: ""
|
||||
password: ""
|
||||
|
||||
tweet:
|
||||
consumer_key: "consumer_key"
|
||||
consumer_secret: "consumer_secret"
|
||||
access_token_key: "access_token_key"
|
||||
access_token_secret: "access_token_secret"
|
||||
- class: "jabber"
|
||||
type: "jabber"
|
||||
args:
|
||||
rcpt: "hanez@example.org"
|
||||
hanez:
|
||||
name: "admin"
|
||||
tasks:
|
||||
- class: "mail"
|
||||
type: "mail"
|
||||
args:
|
||||
rcpt: "admin@example.org"
|
||||
linspector:
|
||||
name: "linspector admin"
|
||||
tasks:
|
||||
- class: "jabber"
|
||||
type: "jabber"
|
||||
args:
|
||||
rcpt: "hanez@example.org"
|
||||
periods:
|
||||
fast:
|
||||
seconds: 2
|
||||
medium:
|
||||
seconds: 120
|
||||
slow:
|
||||
seconds: 480
|
||||
hostgroups:
|
||||
a:
|
||||
members:
|
||||
- "hanez"
|
||||
hosts:
|
||||
- "a.example.org"
|
||||
services:
|
||||
- class: "tcpconnect"
|
||||
args:
|
||||
port: 80
|
||||
periods:
|
||||
- "medium"
|
||||
threshold: 2
|
||||
b:
|
||||
members:
|
||||
- "hanez"
|
||||
hosts:
|
||||
- "b.example.org"
|
||||
services:
|
||||
- class: "tcpconnect"
|
||||
args:
|
||||
port: 23
|
||||
periods:
|
||||
- "fast"
|
||||
threshold: 2
|
||||
- class: "tcpconnect"
|
||||
args:
|
||||
port: 80
|
||||
periods:
|
||||
- "fast"
|
||||
threshold: 4
|
||||
- class: "tcpconnect"
|
||||
args:
|
||||
port: 23
|
||||
periods:
|
||||
- "fast"
|
||||
threshold: 4
|
||||
c:
|
||||
members:
|
||||
- "hanez"
|
||||
hosts:
|
||||
- "c.example.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.example.org)"
|
||||
max_logfile_size: 1024000
|
||||
max_logfile_count: 4
|
||||
max_worker_threads: 8
|
||||
jsonrpc_backend: False
|
||||
members:
|
||||
- "linspector"
|
||||
- "root"
|
||||
backends:
|
||||
jsonrpc:
|
||||
host: "127.0.0.1"
|
||||
port: "2323"
|
||||
username: "linspector"
|
||||
password: "linspector"
|
||||
tasks:
|
||||
jabber:
|
||||
host: "example.org"
|
||||
port: 5222
|
||||
username: "linspector"
|
||||
password: "linspector"
|
||||
debug:
|
||||
- "always"
|
||||
mail:
|
||||
host: "localhost"
|
||||
port: 25
|
||||
from: "linspector@example.org"
|
||||
username: ""
|
||||
password: ""
|
||||
tweet:
|
||||
consumer_key: "consumer_key"
|
||||
consumer_secret: "consumer_secret"
|
||||
access_token_key: "access_token_key"
|
||||
access_token_secret: "access_token_secret"
|
||||
Loading…
Add table
Add a link
Reference in a new issue