From f457b971a777bfc17c7017777086f7573d6bff39 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 26 May 2024 11:35:24 -0700 Subject: [PATCH] Check if an NFS server is actually installed --- status/nfs-monitor.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/status/nfs-monitor.pl b/status/nfs-monitor.pl index ef92bd23e..94d2d447c 100755 --- a/status/nfs-monitor.pl +++ b/status/nfs-monitor.pl @@ -5,8 +5,8 @@ sub get_nfs_status { return { 'up' => -1 } if (!&foreign_check("proc")); &foreign_require("proc", "proc-lib.pl"); -if (&foreign_check("exports") || &foreign_check("dfsadmin") || - &foreign_check("bsdexports") || &foreign_check("hpuxexports")) { +if (&foreign_installed("exports") || &foreign_installed("dfsadmin") || + &foreign_installed("bsdexports") || &foreign_installed("hpuxexports")) { return { 'up' => &find_named_process('nfsd') ? 1 : 0 }; } else {