Added example config files and updated the build script so they get installed.

This commit is contained in:
Gunnar Beutner 2012-09-14 11:32:49 +02:00
parent 699b66b913
commit 5c5db5b3a5
12 changed files with 52 additions and 56 deletions

View File

@ -76,6 +76,7 @@ components/demo/Makefile
components/replication/Makefile
docs/Doxyfile
icinga-app/Makefile
icinga-app/config/Makefile
lib/Makefile
lib/base/Makefile
lib/config/Makefile

View File

@ -1,5 +1,7 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = \
config
bin_PROGRAMS = \
icinga

View File

@ -30,4 +30,4 @@ ozBccmQqv5wToWUBm3MB+nph7+fWswJAMKcQQ6UZCvganHeCzJbUXqUQPo7ECoHH
IrSFEMmSRY1mB3z8NoMKG0kZArPgxc/DmUGfBfi12gWOvSgvh6PjVwJBALKECoe5
nmxhHTFbs4+UCFTzp6BGtSBdr6to0ID7ykZWT6kBX/BHUnoJUEpDtNLXzbek/KeI
ymg0LgRkHoWNpLY=
-----END PRIVATE KEY-----
-----END PRIVATE KEY-----

View File

@ -0,0 +1,47 @@
local object IcingaApplication "icinga" {
}
local object Component "checker" {
}
local object Component "delegation" {
}
local object Component "compat" {
}
abstract object Service "nagios-service" {
methods {
check = "native::NagiosCheck"
},
macros = {
plugindir = "/usr/lib/nagios/plugins"
}
}
abstract object Service "ping" inherits "nagios-service" {
check_command = "$plugindir$/check_ping -H $address$ -w $wrta$,$wpl$% -c $crta$,$cpl$%",
macros += {
wrta = 50,
wpl = 5,
crta = 100,
cpl = 10
}
}
object Host "localhost" {
services = { "ping" },
macros = {
address = "127.0.0.1"
},
check_interval = 10
}

View File

@ -1,15 +0,0 @@
local object IcingaApplication "icinga" {
ca = "ca.crt",
cert = "icinga-c1.pem",
node = "10.0.10.14",
service = 7778
}
local object Component "demo" {
}
local object Component "discovery" {
broker = 1
}

View File

@ -1,17 +0,0 @@
local object IcingaApplication "icinga" {
ca = "ca.crt",
cert = "icinga-c2.pem",
}
local object Component "demo" {
}
local object Component "discovery" {
broker = 1
}
local object Endpoint "icinga-c3" {
node = "192.168.5.46",
service = 7778,
}

View File

@ -1,23 +0,0 @@
local object application "icinga" {
ca = "ca.crt",
cert = "icinga-c3.pem",
node = "10.0.10.14",
service = 9999
}
local object component "configrpc" {
}
local object component "checker" {
}
local object component "discovery" {
broker = 0
}
local object endpoint "icinga-c2" {
node = "192.168.2.235",
service = 7777,
}

View File

@ -36,3 +36,4 @@ make install DESTDIR=%{buildroot}
%{_bindir}/icinga
%{_datadir}/doc/icinga2
%{_libdir}/icinga2
%{_sysconfdir}/icinga2