From d3eef71127baf00a51456b9e3bc746fe73726045 Mon Sep 17 00:00:00 2001 From: Mathieu Trossevin Date: Tue, 16 Nov 2021 14:50:12 +0100 Subject: [PATCH] nagios-nrpe: Fix check_nfsserver for buster and bullseye From buster onward the nfs server doesn't run NFSv4 over UDP (it is out of spec, see RFC 7530). As such the check broke as it attempt to check the availability of NFSv4 over UDP. Right now the check doesn't check for NFSv2 over UDP as it would need to check if it exist first, as on bullseye it isn't supported by default anymore. --- CHANGELOG.md | 3 ++- nagios-nrpe/files/plugins/check_nfsserver | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60938983..5f21ad6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,7 +31,8 @@ The **patch** part changes is incremented if multiple releases happen the same m * evolinux-base: fix alert5.service dependency syntax * mysql : Create a default ~root/.my.cnf for compatibility reasons * nginx : fix variable name and debug to actually use nginx-light -* packweb-apache : Support php 8.0 +* packweb-apache : Support php 8.0 +* nagios-nrpe: Fix check\_nfsserver for buster and bullseye ### Removed diff --git a/nagios-nrpe/files/plugins/check_nfsserver b/nagios-nrpe/files/plugins/check_nfsserver index 80752bfd..3debccc4 100755 --- a/nagios-nrpe/files/plugins/check_nfsserver +++ b/nagios-nrpe/files/plugins/check_nfsserver @@ -1,12 +1,12 @@ #!/bin/sh # Check if nfs server is running using rpcinfo -rpcinfo -u localhost nfs +rpcinfo -T udp localhost nfs 3 if [ $? -ne 0 ]; then exit 2 fi -rpcinfo -t localhost nfs +rpcinfo -T tcp localhost nfs if [ $? -ne 0 ]; then exit 2 fi