On Tuesday 03 October 2006 23:24, T.J. Yang wrote:
How can hobbit client or its external module do NFS monitoring ?
Hobbit can monitor rpc services, see bb-hosts(5). But, this only checks that the rpc program is registered on the host.
Is there a way to monitor remote nfs server and its partition from hobbit server ?
command like showmount looks pretty handy to achieve the goal.
[root] showmount -e mynfsserver export list for mynfsserver: /export (everyone) /opt/sge (everyone) [root]
Sure, so you could write a trivial extension script for the server that does this.
Also is there a way to monitor stale NFS issue by bb or hobbit client ? right now I am using cron job to detect nfs parition is out of reach by ls command.
17,55 * * * * (ok=
ls /nfsserver/README.txt; if [ $? -eq 1 ];then echo "automounter has problem;run /etc/init.d/autofs reload" | /bin/mail -s "ls /nfsserver/README.txt failed on t-myhost" test at test.com ;fi;)
This could also be an extension script on any hobbit client (and, it would then also be able to test for being able to write to certain NFS shares).
You could also use a "file" monitor on any of your NFS clients.
Regards, Buchan
-- Buchan Milne ISP Systems Specialist - Monitoring/Authentication Team Leader B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)