added linspector.yaml to show the new config file format
This commit is contained in:
parent
16a5a09bf5
commit
0d0ee69313
1 changed files with 138 additions and 0 deletions
138
examples/linspector.yaml
Normal file
138
examples/linspector.yaml
Normal file
|
|
@ -0,0 +1,138 @@
|
||||||
|
---
|
||||||
|
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"
|
||||||
|
|
||||||
|
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