[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] how to get dnsreg to work .. ?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] how to get dnsreg to work .. ?
- From: "meepmeep @ Fantasya.org" <meepmeep (at) fantasya.org>
- Date: Mon, 1 Mar 2010 10:19:10 +0100
- References: <b5e7736b1002280746q45a12a1eoa26d964ffb78a7a (at) mail.gmail.com> <b5e7736b1002280831s6bb54ae1l5892e29529bc8569 (at) mail.gmail.com> <997a524e1002281008i6cfac412y6a3a2e85a7135148 (at) mail.gmail.com>
Thank you, it works great :)
--
Nicolas G. / meepmeep
On Sun, Feb 28, 2010 at 7:08 PM, Ralph Mitchell <ralphmitchell (at) gmail.com>wrote:
> 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
>
> echo "yahoo.com" | while read L
>
> 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:
>
> DOM=`echo $DOMAIN | sed -e 's/\./,/g'`
> echo $BB $BBDISP "status+12h $DOM.dnsreg $COLOR `date`
>
> You can test your script using bbcmd:
>
> server/bin/bbcmd server/ext/dnsreg
>
> 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.
>
> Ralph Mitchell
>
>