[smokeping-users] Re: Using dns probe, on sp 1.28

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Fri Mar 19 18:04:33 MET 2004


* PAUL WILLIAMSON <pwilliamson at mandtbank.com>:

> ERROR: output of '/usr/bin/dig localhost' does not match (?i-xsm:query time:\s+([0-9.]+)\smsec.*)
>  at (eval 10) line 1
> 
> Could it be the version of dig I'm using?  I'm using bind-9.1.10-10 on RH Linux 7.2.

On Debian it looks like this:

; <<>> DiG 9.2.3 <<>> localhost
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52430
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;localhost.                     IN      A

;; ANSWER SECTION:
localhost.              655360  IN      A       127.0.0.1

;; Query time: 7 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Mar 19 18:00:36 2004
;; MSG SIZE  rcvd: 43

And now I show you a cool Postfix trick:

$ echo "/(?i-xsm:query time:\s+([0-9.]+)\smsec.*)/  Ole it worked" > file.pcre
$ /usr/bin/dig localhost| postmap -q - pcre:file.pcre
;; query time: 3 msec   Ole it worked

-- 
_________________________________________________

  Charité - Universitätsmedizin Berlin
_________________________________________________

  Ralf Hildebrandt
   i.A. des IT-Zentrum | Netzwerkdienste
   Stabsstelle des Klinikumsvorstandes
   Campus Mitte
   Schumannstr. 20/21 | D-10177 Berlin
   Tel. +49 30 450 570155 | Fax +49 30 450 570916
   Ralf.Hildebrandt at Charite.de
   http://www.charite.de


--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the smokeping-users mailing list