Xymon Mailing List Archive search

Solaris vxfs filesystem monitor.

list Dominique Frise
Fri, 04 Sep 2009 08:51:18 +0200
Message-Id: <user-96d8555c4848@xymon.invalid>

I do not agree with this change.
It breaks the piped egrep which filter on words without space at the beginning.

Dominique


Brian Catlin wrote:
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.
  user-259d6a9a548a@xymon.invalid