[hobbit] Solaris vxfs filesystem monitor.

Everett, Vernon Vernon.Everett at woodside.com.au
Fri Sep 4 03:39:12 CEST 2009


Hi

This bug is not just with Veritas, but with ZFS and any file system where the path in df -n -l exceeds 19 characters.
See here http://www.hswn.dk/hobbiton/2008/01/msg00447.html.
My work-around used cut :-)

I am surprised this bug is still hanging around.

Cheers
      V



________________________________
From: Brian Catlin [mailto:bcatlin at gmail.com]
Sent: Friday, 4 September 2009 8:13 AM
To: hobbit at hswn.dk
Subject: [hobbit] Solaris vxfs filesystem monitor.

With Xyxmon - I am not using a specific monitor for the veritas file systems on my server.   The default script  does not let them be seen in the display.

I edited the  $BB_HOME/bin/hobbitclient-sunos.sh  script to fix this.  I would like to recommend this to be included in future builds - Its a simple change:

Ine 25:

FSTYPES=`/bin/df -n -l|awk '{print $3}'|egrep -v "^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs"|sort|uniq`

Change to:
FSTYPES=`/bin/df -n -l|awk -F: '{print $2}'|egrep -v "^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs"|sort|uniq`

This allows the display of the vxfs filesystems.

The issue is the way they output under the default.  Most have a space in front of the colon, but veritas does not - its colon abuts the first field. By splitting on the colon, yo get what is intended.

This may apply under other OS's, but I don't have ay with veritas outside of the solaris one.


lurch at inorbit.com




NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090904/3b1b9612/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: faint_grain.jpg
Type: image/jpeg
Size: 1458 bytes
Desc: faint_grain.jpg
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090904/3b1b9612/attachment.jpg>


More information about the Xymon mailing list