From 8678f5e4a6ddfbfb0530f0f80572f169d617569a Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sun, 20 Oct 2013 22:45:44 +0200 Subject: [PATCH] added var to core an some design fixes --- examples/linspector.yaml | 254 ++++++++++++++++++--------------------- 1 file changed, 118 insertions(+), 136 deletions(-) diff --git a/examples/linspector.yaml b/examples/linspector.yaml index fcc5082..8a32050 100644 --- a/examples/linspector.yaml +++ b/examples/linspector.yaml @@ -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" \ No newline at end of file