Handle hostnames with upper-case letters
[webmin.git] / status / nfs-monitor.pl
1 # nfs-monitor.pl
2 # Monitor the NFS server process
3
4 sub get_nfs_status
5 {
6 return { 'up' => -1 } if (!&foreign_check("proc"));
7 &foreign_require("proc", "proc-lib.pl");
8 if (&foreign_check("exports") || &foreign_check("dfsadmin") ||
9     &foreign_check("bsdexports") || &foreign_check("hpuxexports")) {
10         return { 'up' => &find_named_process('nfsd') ? 1 : 0 };
11         }
12 else {
13         return { 'up' => -1 };
14         }
15 }
16