-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dominique Frise wrote:
From hobbitclient-sunos.sh you can see that Xymon uses following commands to report disk usage ... echo "[df]" ROOTFSTYPE=
/bin/df -n / | awk '{print $3}'/bin/df -F $ROOTFSTYPE -kThen see what fs types are in use, and weed out those we dont want.
FSTYPES=
/bin/df -n -l|cut -d: -f2 | awk '{print $1}'|egrep -v "^${ROOTFSTYPE}|^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs|^lofs|^sharefs"|sort|uniqset $FSTYPES while test "$1" != ""; do /bin/df -F $1 -k | egrep -v " /var/run" | tail +2 shift done ...
This means that /var/run, /dev/fd, /system/object, /etc/mnttab, /system/contract, /proc and /dev mounts are excluded from the output. /var and /common seem to be lofs mounts and will be excluded as well.
On your solaris zones how do you monitor your filesysteme. The problem that I have with df on the global zone is that hobbit does not have read access to this var partition. Therefore it is not monitored to on the global zone.
How do you proceed to monitor your disk spaces on your solaris zones? I am thinking of patching this script. Is there a better solution?
Thanks in advance for your answer. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkoc1QIACgkQPzupdm8BofxOaQCgiBI4vF3dAy0fhzJGi/8AcWoL 9XcAn2ruNYO/mbX/RvvkjLUKpsLW9uXH =kRIa -----END PGP SIGNATURE-----