]> granicus.if.org Git - icinga2/commitdiff
Add 'gelf' feature config
authorMichael Friedrich <michael.friedrich@netways.de>
Mon, 10 Nov 2014 19:05:57 +0000 (20:05 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 11 Nov 2014 13:16:48 +0000 (14:16 +0100)
refs #7619

etc/CMakeLists.txt
etc/icinga2/features-available/gelf.conf [new file with mode: 0644]

index 204e1e85ec4cfddcd582622e30855611a07a5ac1..08d781a7505476e0871200d4736ef060a9a76354 100644 (file)
@@ -41,6 +41,7 @@ install_if_not_exists(icinga2/features-available/checker.conf ${CMAKE_INSTALL_SY
 install_if_not_exists(icinga2/features-available/command.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/features-available)
 install_if_not_exists(icinga2/features-available/compatlog.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/features-available)
 install_if_not_exists(icinga2/features-available/debuglog.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/features-available)
+install_if_not_exists(icinga2/features-available/gelf.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/features-available)
 install_if_not_exists(icinga2/features-available/graphite.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/features-available)
 install_if_not_exists(icinga2/features-available/icingastatus.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/features-available)
 install_if_not_exists(icinga2/features-available/ido-mysql.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/features-available)
diff --git a/etc/icinga2/features-available/gelf.conf b/etc/icinga2/features-available/gelf.conf
new file mode 100644 (file)
index 0000000..1c8e6bd
--- /dev/null
@@ -0,0 +1,11 @@
+/**
+ * The GelfWriter type writes event logs
+ * to a gelf tcp socket provided by graylog2.
+ */
+
+library "perfdata"
+
+object GelfWriter "graylog2" {
+  //host = "127.0.0.1"
+  //port = 2003
+}