Table of Contents
nagios-check-nfs - test if a NFS dir is mounted
nagios-check-nfs
NFS-MOUNTED-FILE [...]
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".
Its primary purpose is the usage as nagios remote plugin with net-snmp. Just
add to snmpd.conf a single line like this:
- extend .1.3.6.1.4.1.2021.62 nfs /usr/sbin/nagios-check-nfs
/var/kugelfisch/resources/.I_AM_ALIVE.DO_NOT_DELETE
Any additional arguments
are silently ignored and can be used as a mark for i.e. searching a snmpwalk
output with less.
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.
nagios-check-nfs /var/kugelfisch/resources/.I_AM_ALIVE.DO_NOT_DELETE
Frank Bergmann, http://www.tuxad.com
Table of Contents