From 00e991357ac39b2e647a99834ba19eaf7b77179a Mon Sep 17 00:00:00 2001
From: Vincent SELLIER <vincent.sellier@softwareheritage.org>
Date: Wed, 17 Nov 2021 18:18:53 +0100
Subject: [PATCH] fix nagios sudo for check_journal

Related to T3705
---
 site-modules/profile/manifests/icinga2/objects/agent_checks.pp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/site-modules/profile/manifests/icinga2/objects/agent_checks.pp b/site-modules/profile/manifests/icinga2/objects/agent_checks.pp
index bf03d3d93..fa1acf153 100644
--- a/site-modules/profile/manifests/icinga2/objects/agent_checks.pp
+++ b/site-modules/profile/manifests/icinga2/objects/agent_checks.pp
@@ -27,7 +27,7 @@ class profile::icinga2::objects::agent_checks {
         'journal_lag_crit' => 3600,
       },
       sudo => true,
-      sudo_user => 'journalbeat',
+      sudo_user => 'root',
     },
     'check_newest_file_age' => {
       arguments => {
-- 
GitLab