[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Antwort: Re: [xymon] Antwort: Re: [xymon] urlplus.pl / xymongrep
- To: xymon (at) xymon.com
- Subject: Antwort: Re: [xymon] Antwort: Re: [xymon] urlplus.pl / xymongrep
- From: "Hermann-Josef Beckers" <hj.beckers (at) kreis-steinfurt.de>
- Date: Mon, 27 Dec 2010 09:47:54 +0100
- References: <OF8732E88F.9A795F05-ONC1257802.003DB83C-C1257802.0043AB8B (at) kreis-steinfurt.de> <OF59C2327A.26D9BB61-ONC1257802.002B2C4D-C1257802.002C430C (at) kreis-steinfurt.de> <4D1306C8.2020107 (at) unil.ch> <OF1D596522.7A4D30D7-ONC1257802.003A37D9-C1257802.003B17C1 (at) kreis-steinfurt.de> <OF8732E88F.9A795F05-ONC1257802.003DB83C-C1257802.0043AB8B (at) kreis-steinfurt.de> <OFB2BA4AD7.27C43401-ONC1257802.00460818-C1257802.004A1FFF (at) kreis-steinfurt.de> <ievpc8$8pa$2 (at) voodoo.hswn.dk>
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