fix(check_nrpepid): bookworm should be checked like bullseye

This commit is contained in:
Mathieu Trossevin 2023-05-04 15:20:32 +02:00
parent 90c1f854cf
commit 442d1446b5
Signed by: mtrossevin
GPG Key ID: D1DBB7EA828374E9
1 changed files with 1 additions and 1 deletions

View File

@ -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"