Re: nfs monitor exisiting?

2005-06-07 Thread Jim Trocki

On Tue, 7 Jun 2005, Ed Ravin wrote:


On Tue, Jun 07, 2005 at 12:44:02PM +0200, Gilles LAMIRAL wrote:

Is there any montior existing, where i can check if
the nfs service is correct running on my servers ??


Here is the monitor :

ls -d /mnt/dir1/* /mnt/dir2/* ...

where dir1 dir2 ... are the mounted mount points.
And this is not a joke :-)


But if the NFS server is not responding, that command will hang.  Forever.


not if you mount the nfs volumes you are monitoring with the "soft"
option, which will make syscalls accessing those volumes return with an
i/o error if there is a major timeout. i've done this before and it works
well.

___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon


Re: nfs monitor exisiting?

2005-06-07 Thread Ed Ravin
On Tue, Jun 07, 2005 at 12:44:02PM +0200, Gilles LAMIRAL wrote:
> > Is there any montior existing, where i can check if 
> > the nfs service is correct running on my servers ??
> 
> Here is the monitor :
> 
> ls -d /mnt/dir1/* /mnt/dir2/* ...
> 
> where dir1 dir2 ... are the mounted mount points.
> And this is not a joke :-)

But if the NFS server is not responding, that command will hang.  Forever.

You can monitor individual parts of your NFS server - ping it, use the
rpc.monitor that came with Mon to check that the RPC service is running
on it, maybe use tcp.monitor to check that the TCP side of the NFS service
(version 3 or later, IIRC) is answering.  If your server is a NetApp or
otherwise has an SNMP stack, you can monitor via SNMP.  You could run
"showmount host" to make sure the mount points that you expect to see are
available.

But there's no Mon script yet that verifies that the entire disk service is
running.

___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon


Re: nfs monitor exisiting?

2005-06-07 Thread Gilles LAMIRAL
Hello,

Sorry for my last empty message.

> Is there any montior existing, where i can check if 
> the nfs service is correct running on my servers ??

Here is the monitor :

ls -d /mnt/dir1/* /mnt/dir2/* ...

where dir1 dir2 ... are the mounted mount points.
And this is not a joke :-)

-- 
Au revoir,  02 99 78 62 49
06 20 79 76 06
Gilles Lamiral. France, L'Hermitage (35590) 08 70 76 34 16

___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon