From 0d0ee69313aedbcd4044cdd7d925afa008bf73e6 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sat, 19 Oct 2013 01:38:10 +0200 Subject: [PATCH] added linspector.yaml to show the new config file format --- examples/linspector.yaml | 138 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 examples/linspector.yaml diff --git a/examples/linspector.yaml b/examples/linspector.yaml new file mode 100644 index 0000000..fcc5082 --- /dev/null +++ b/examples/linspector.yaml @@ -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"