[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Antwort: Re: [xymon] Antwort: Re: [xymon] urlplus.pl / xymongrep



Henrik "Størner" <henrik (at) hswn.dk> schrieb am 23.12.2010 16:20:40:

Hy Henrik,
...
> 
> I'd guess that the urlplus.pl script doesn't use the "bbhostgrep" or
> "xymongrep" tools to search the hosts.cfg (bb-hosts) file. But I 
> haven't looked at this script, so I could be wrong.
> 

According to "grep -i grep urlplus.pl":

my $BBHOSTGREP = $ENV{'XYMONHOME'}."/bin/xymongrep";
my @hostgrepin = qx($BBHOSTGREP $BBTAG);
foreach $hostline (@hostgrepin)
my @hostgrepin = qx(cat $CFGPATH/$CFGFILE);
foreach $hostline (@hostgrepin)
            $url=qx(curl -S -s -k -m $tout -b $COOKIE_DIR $other -I $pstr 
$form "$url"|grep Location|sed "s/Location: //" 2>&1);
.

where $BBTAG contains "urlplus".

Yours
hjb