ansible-roles/nagios-nrpe/files/plugins/check_nfsserver

15 lines
202 B
Bash
Executable file

#!/bin/sh
# Check if nfs server is running using rpcinfo
rpcinfo -u localhost nfs
if [ $? -ne 0 ]; then
exit 2
fi
rpcinfo -t localhost nfs
if [ $? -ne 0 ]; then
exit 2
fi
# vim: set ft=shell