From 442d1446b5a9a73e5cae1aaa8b6f89b894846bb4 Mon Sep 17 00:00:00 2001 From: Mathieu Trossevin Date: Thu, 4 May 2023 15:20:32 +0200 Subject: [PATCH] fix(check_nrpepid): bookworm should be checked like bullseye --- linux/evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/evocheck.sh b/linux/evocheck.sh index c548f12..ccf89d0 100755 --- a/linux/evocheck.sh +++ b/linux/evocheck.sh @@ -307,7 +307,7 @@ check_nrpedisks() { test "$NRPEDISKS" = "$DFDISKS" || failed "IS_NRPEDISKS" "there must be $DFDISKS check_disk in nrpe.cfg" } check_nrpepid() { - if is_debian_bullseye; then + if { is_debian_bullseye || is_debian_bookworm ; }; then { test -e /etc/nagios/nrpe.cfg \ && grep -q "^pid_file=/run/nagios/nrpe.pid" /etc/nagios/nrpe.cfg; } || failed "IS_NRPEPID" "missing or wrong pid_file directive in nrpe.cfg"