From 16d2a02e0460f8950e1959fc22ec3b9b864ce1d8 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 12 Jun 2012 11:45:37 +0200 Subject: [PATCH] Converted example config files. --- icinga-app/icinga-standalone.conf | 16 ++++---- icinga-app/icinga2.conf | 63 ++++++++++++++----------------- icinga-app/icinga3.conf | 63 ++++++++++++++----------------- 3 files changed, 65 insertions(+), 77 deletions(-) diff --git a/icinga-app/icinga-standalone.conf b/icinga-app/icinga-standalone.conf index ccc2025a3..f64c5cfc4 100644 --- a/icinga-app/icinga-standalone.conf +++ b/icinga-app/icinga-standalone.conf @@ -1,9 +1,7 @@ -{ - "icinga": { - "icinga": { - } - }, - "component": { - "demo": { } - } -} \ No newline at end of file +local object application "icinga" { + +} + +local object component "demo" { + +} diff --git a/icinga-app/icinga2.conf b/icinga-app/icinga2.conf index b6e79c99a..813ee55b1 100644 --- a/icinga-app/icinga2.conf +++ b/icinga-app/icinga2.conf @@ -1,34 +1,29 @@ -{ - "icinga": { - "icinga": { - "replicate": "0", - "privkey": "icinga-c2.key", - "pubkey": "icinga-c2.crt", - "cakey": "ca.crt", - "node": "10.0.10.3", - "service": "8888" - } - }, - "component": { - "configrpc": { "replicate": "0" }, - "demo": { "replicate": "0" }, - "discovery": { "replicate": "0", "broker": "0" } - }, - "endpoint": { - "icinga-c1": { - "replicate": "0", - "node": "10.0.10.14", - "service": "7777", - "roles": [ "broker", "demo" ] - } - }, - "role": { - "broker": { - "publications": [ "discovery::NewComponent" ] - }, - "demo": { - "publications": [ "demo::*" ], - "subscriptions": [ "demo::*" ] - } - } -} \ No newline at end of file +local object application "icinga" { + privkey = "icinga-c2.key", + pubkey = "icinga-c2.crt", + + cakey = "ca.crt", + node = "10.0.10.3", + service = 8888 +} + +local object component "configrpc" { +} + +local object component "demo" { +} + +local object component "discovery" { + broker = 0 +} + +local object endpoint "icinga-c1" { + node = "10.0.10.14", + service = 7777, + + roles = { "broker" } +} + +local object role "broker" { + publications = { "discovery::NewComponent" } +} diff --git a/icinga-app/icinga3.conf b/icinga-app/icinga3.conf index 879a39f22..5b65ff6c6 100644 --- a/icinga-app/icinga3.conf +++ b/icinga-app/icinga3.conf @@ -1,34 +1,29 @@ -{ - "icinga": { - "icinga": { - "replicate": "0", - "privkey": "icinga-c3.key", - "pubkey": "icinga-c3.crt", - "cakey": "ca.crt", - "node": "10.0.10.14", - "service": "9999" - } - }, - "component": { - "configrpc": { "replicate": "0" }, - "demo": { "replicate": "0" }, - "discovery": { "replicate": "0", "broker": "0" } - }, - "endpoint": { - "icinga-c1": { - "replicate": "0", - "node": "10.0.10.14", - "service": "7777", - "roles": [ "broker", "demo" ] - } - }, - "role": { - "broker": { - "publications": [ "discovery::NewComponent" ] - }, - "demo": { - "publications": [ "demo::*" ], - "subscriptions": [ "demo::*" ] - } - } -} \ No newline at end of file +local object application "icinga" { + privkey = "icinga-c3".key", + pubkey = "icinga-c3.crt", + cakey = "ca.crt", + + node = "10.0.10.14", + service = 9999 +} + +local object component "configrpc" { +} + +local object component "demo" { +} + +local object component "discovery" { + broker = 0 +} + +local object endpoint "icinga-c1" { + node = "10.0.10.14", + service = 7777, + + roles = { "broker" } +} + +local object role "broker" { + publications = "discovery::NewComponent" +} -- 2.40.0