Thank you, it works great :)<div><br><div>--<br>Nicolas G. / meepmeep<br><br>
<br><br><div class="gmail_quote">On Sun, Feb 28, 2010 at 7:08 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I see a couple of things that could be wrong. Possibly you should be doing "DOMAIN=$2" in the loop?? $1 is the ip address, $2 is the fully-qualified hostname. It seemed to work just fine when I replaced the bbhostgrep line with<div>
<div><br></div><div> echo "<a href="http://yahoo.com" target="_blank">yahoo.com</a>" | while read L<br><div><br></div><div>Definitely you should be converting the dots in $DOMAIN to commas. See the second paragraph under "XYMON MESSAGE SYNTAX" in the bb.1 manpage. This would do it:</div>
<div><br></div><div> DOM=`echo $DOMAIN | sed -e 's/\./,/g'`</div><div><div> echo $BB $BBDISP "status+12h $DOM.dnsreg $COLOR `date`</div><div><br></div></div><div>You can test your script using bbcmd:<div>
<br></div><div> server/bin/bbcmd server/ext/dnsreg</div><div><br></div><div>That kicks off the script with the same environment that Xymon gives it. You probably want to put a 'set -x' in at the top, to see everything that's going on. I generally put an "echo" in front of the $BB line when testing, to minimize the amount of bogus reports going to the server.</div>
<div><br></div><font color="#888888"><div>Ralph Mitchell</div></font><div><div></div><div><div><br></div></div></div></div></div></div></blockquote></div></div></div>