Solaris vxfs filesystem monitor.
list Brian Catlin
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
list Vernon Everett
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:user-af6e4c377507@xymon.invalid]
Sent: Friday, 4 September 2009 8:13 AM
To: user-ae9b8668bcde@xymon.invalid
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.
user-259d6a9a548a@xymon.invalid
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.
list Dominique Frise
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