Xymon Mailing List Archive search

Ignore NFS

list Pierre Malenfant
Thu, 04 Jan 2007 08:36:45 -0500
Message-Id: <user-9d8b4f4dc1f4@xymon.invalid>

Hello,

I have tried different recommendations from the mailing list and I played around with different ways of ignoring some mount types.

There is two problems I always had:
- NFS/CIFS/SMB mounts hang/delay the "df" command if remote host does not respond
- Special devices should be ignored (CD/DVD/etc)

Now, I'm using the following method and as of now, it look like it work very well for me (mostly AIX or Linux environments)

*** If somebody has other ideas or think this could be done in a simpler ways, I would be glad to hear your comments.  ***

My actual "method" if to catch only some vfs types from the "mount" command and pass the filesystem list to "df"

In the file  /home/hobbit/client/bin/hobbitclient-aix.sh

################################################################################
# Change to remove NFS and CIFS filesystems
#df -Ik | sed -e '/^[^  ][^     ]*$/{
df -Ik `mount | awk '$3~/jfs/ {printf $2 " "}'` | sed -e '/^[^  ][^ ]*$/{
################################################################################


Pierre


Richard Leon <user-a4b45fb5dd94@xymon.invalid> 2007-01-04 07:39
Please respond to
user-ae9b8668bcde@xymon.invalid


To
user-ae9b8668bcde@xymon.invalid
cc

Subject
[hobbit] Ignore NFS


I searched the archive and found a few posts about monitoring nfs mounts.
But how can I ignore nfs mounts from showing up?
 Weekly ignite backups mount a filesystem and unmount it. I would like to ignore this filesystem on the clients but have it monitored on the server.  How can I go about this?
 And also how can I delete the extra chart that it created today.
 For now I just set the default higher so it would not page out.
 Thanks
Richard