Control: tags -1 patch

Hi,


On Sun, 20 Oct 2024 15:26:23 +0200 Paul Gevers <elb...@debian.org>
wrote:
 
> https://ci.debian.net/packages/m/munin/testing/amd64/53125959/
> 446s --- expected_plugins     2024-10-16 16:17:20.130511035 +0000
> 446s +++ all_without_network_interfaces       2024-10-16
> 16:17:20.130511035 +0000 446s @@ -12,6 +12,8 @@
> 446s  load
> 446s  memory
> 446s  netstat
> 446s +nfsd
> 446s +nfsd4
> 446s  open_files
> 446s  open_inodes
> 446s  proc_pri


When nfsd is enabled, nfsd plugin will be detected.
It may depends on /proc/net/rpc/nfsd, so something like this patch
will help.


diff --git a/debian/tests/munin-node/02.plugins.t
b/debian/tests/munin-node/02.plugins.t index 769dfcde..1e2093c3 100755
--- a/debian/tests/munin-node/02.plugins.t
+++ b/debian/tests/munin-node/02.plugins.t
@@ -55,6 +55,14 @@ EOF
     if [ -x /bin/netstat ]; then
       echo netstat
     fi
+    if [ -f /proc/net/rpc/nfsd ]; then
+      if [ grep -q proc3 /proc/net/rpc/nfsd ]; then
+        echo nfsd
+      fi
+      if [ grep -q proc4ops /proc/net/rpc/nfsd ]; then
+        echo nfsd4
+      fi
+    fi
     SPOOLDIR="$(postconf -h queue_directory 2>/dev/null || echo
/var/spool/postfix)" if [ -d "$SPOOLDIR" ]; then
         echo postfix_mailqueue



Regards,

Reply via email to