Antwort: Re: [xymon] Antwort: Re: [xymon] urlplus.pl / xymongrep
Hermann-Josef Beckers
hj.beckers at kreis-steinfurt.de
Mon Dec 27 09:47:54 CET 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20101227/43d0d45b/attachment.html>
More information about the Xymon
mailing list