Antwort: Re: [hobbit] Wish for next Hobbit Version
stefan.freisler at aspect-online.de
stefan.freisler at aspect-online.de
Thu Jan 4 15:31:40 CET 2007
yes of cause but when you only use grep hobbitdboard is better i think. In
my scripts i parse the XML file with some commands
e.g.
HOSTS=`$BBHOME/bin/bb 127.0.0.1 "hobbitdxboard"| $TR -d '\n'| sed
's#\(.*\)<StatusBoard>\(.*\)</StatusBoard>\(.*\)#\2#'|$SED
's#</ServerStatus>#\x0A#g'|$SED
's#\(.*\)<ServerName>\(.*\)</ServerName>\(.*\)#\2#'|$SORT -u`
with this you get all hostnames only once and sorted.
If you use it on console you must change the $SED etc to sed or something
else.
by
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070104/0085251a/attachment.html>
More information about the Xymon
mailing list