Xymon Mailing List Archive search

urlplus.pl / xymongrep

list Hermann-Josef Beckers
Mon, 27 Dec 2010 09:47:54 +0100
Message-Id: <user-8dccec088401@xymon.invalid>

Henrik "Størner" <user-ce4a2c883f75@xymon.invalid> 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