[Xymon] Fwd: suggestion for xymonclient-sunos.sh under solaris 10.

Randall Badilla rbadillarx at gmail.com
Thu May 19 18:04:07 CEST 2011


Hi People:
Maybe somebody notice a little error at the line if test "$ONZONE" ==
"global" . There were a difference between the posted coded and the real one
that I have now using on all my solaris boxes.
Sorry for that and (accept my apologizes) here is the correct code.

56,58d55
< ONZONE=`zonename`
< if test "$ONZONE" == "global"
< then
61,64d57
< else
< MYNICS=`netstat -i |cut -f1 -d" " | egrep -i -v "Name|lo|^$"  |paste -s
-d"|" - `
< /usr/bin/kstat -p -s '[or]bytes64' | egrep "$MYNICS"| sort
< fi56,58d55
< ONZONE=`zonename`
< if test "$ONZONE" = "global"
< then
61,64d57
< else
< MYNICS=`netstat -i |cut -f1 -d" " | egrep -i -v "Name|lo|^$"  |paste -s
-d"|" - `
< /usr/bin/kstat -p -s '[or]bytes64' | egrep "$MYNICS"| sort
< fi

Any comment; welcome!

--Randall Badilla.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110519/839924fc/attachment.html>


More information about the Xymon mailing list