From be4c9ce6f46ead3313ad5c59be5ad9ac425da4f3 Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Wed, 21 Dec 2022 11:22:13 +0100 Subject: [PATCH] icinga2 syslog -> journald logging --- bundles/icinga2/files/features/journald.conf | 7 +++++++ bundles/icinga2/files/features/syslog.conf | 3 --- bundles/icinga2/items.py | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 bundles/icinga2/files/features/journald.conf delete mode 100644 bundles/icinga2/files/features/syslog.conf diff --git a/bundles/icinga2/files/features/journald.conf b/bundles/icinga2/files/features/journald.conf new file mode 100644 index 0000000..e0b36f7 --- /dev/null +++ b/bundles/icinga2/files/features/journald.conf @@ -0,0 +1,7 @@ +/** + * The JournaldLogger type writes log information to the systemd journal. + */ + +object JournaldLogger "journald" { + severity = "warning" +} diff --git a/bundles/icinga2/files/features/syslog.conf b/bundles/icinga2/files/features/syslog.conf deleted file mode 100644 index 161fd36..0000000 --- a/bundles/icinga2/files/features/syslog.conf +++ /dev/null @@ -1,3 +0,0 @@ -object SyslogLogger "syslog" { - severity = "warning" -} diff --git a/bundles/icinga2/items.py b/bundles/icinga2/items.py index b8d0bab..8fb91f4 100644 --- a/bundles/icinga2/items.py +++ b/bundles/icinga2/items.py @@ -195,7 +195,7 @@ files = { # FEATURES for feature, context in { - 'syslog': {}, + 'journald': {}, 'notification': {}, 'checker': {}, 'api': {},