[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Solaris vxfs filesystem monitor.



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. lurch (at) inorbit.com