I have three Debian 11 servers let's call them nfs-server
which is the NFS server, nfs1
, and nfs2
which are the NFS clients.
I want to perform some sort of health check from the NFS server to ensure client connectivity and detect if a client is unmounted
and raise an alert (The alert part is not the topic of this post).
My question is:
How to perform a health check and ensure client connectivity from the NFS server? Is there any utility for this?
- If yes, can it be integrated with Prometheus or Alert-manager? Should I use
cron
and a bash script? - If yes, can you suggest a script?
UPDATE:
I should mention that I'm using NFSv4 which doesn't use rpcbind
services:
cat /proc/fs/nfsd/versions
-2 -3 +4 +4.1 +4.2
showmount -a
clnt_create: RPC: Program not registered
Any assistance is appreciated, thanks in advance.