Check if an NFS server is actually installed

This commit is contained in:
Jamie Cameron
2024-05-26 11:35:24 -07:00
parent f5252d3f09
commit f457b971a7

View File

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