.TH nagios-check-nfs 1 "December 2007" "ngtx" .SH NAME nagios-check-nfs \- test if a NFS dir is mounted .SH SYNOPSIS .B nagios-check-nfs \fINFS-MOUNTED-FILE \fR [...] .SH DESCRIPTION This program tries to print the contents of the given file on a nfs-mounted directory. This file should contain just one line with the number "1". .br Its primary purpose is the usage as nagios remote plugin with net-snmp. Just add to snmpd.conf a single line like this: .IP extend .1.3.6.1.4.1.2021.62 nfs /usr/sbin/nagios-check-nfs /var/kugelfisch/resources/.I_AM_ALIVE.DO_NOT_DELETE .PP Any additional arguments are silently ignored and can be used as a mark for i.e. searching a snmpwalk output with less. .SH "RETURN VALUE" The return value is 1 if the file on the mounted dir cannot be opened or read (then the value "9" is printed). On success 0 is the result. .SH EXAMPLES nagios-check-nfs /var/kugelfisch/resources/.I_AM_ALIVE.DO_NOT_DELETE .SH AUTHOR Frank Bergmann, http://www.tuxad.com