Trouble with expect

Jason 'XenoPhage' Frisvold friz at godshell.com
Wed Jan 19 15:56:00 EST 2005


Hi all,

    I'm sure there's a quick and easy answer to this, but I can't find 
it....  I'm trying to monitor the Team Cymru bogon list for updates.  
So, I set up my config like this :

   Service TCP/URL {
      url:     http://www.cymru.com/Documents/bogon-list.html
      browser: Team Cymru Bogon List - Version 2.5
      expect:     The\ Team\ Cymru\ Bogon\ List\ v2\.5\ 02\ AUG\ 2004
      label:      Bogon List Version
      messagedn:  Cymru Bogon List Updated!
      frequency:  86400
      retries: 5
      retrydelay: 600
   }

Ok, all good, it's showing up.  But I wanted to make sure it was 
working, so I changed the version in the expect line.  Specifically, I 
changed it to this :

      expect:     The\ Team\ Cymru\ Bogon\ List\ v2\.6\ 02\ AUG\ 2004

I hupped Argus, waited for it to restart, and then issued a checknow for 
that object :

./argusctl checknow 
"object=Top:World_Reachability:URL_www.cymru.com:80/Documents/bogon-list.html"

No dice.  It listed as up and stayed up...

Any idea what I'm missing here?  I'm definitely no regex expert, but I 
thought that expression would work fine ?



-- 
---------------------------
Jason 'XenoPhage' Frisvold
Engine / Technology Programmer
friz at godshell.com
RedHat Certified - RHCE # 803004140609871
MySQL Pro Certified - ID# 207171862
MySQL Core Certified - ID# 205982910
---------------------------
"Something mysterious is formed, born in the silent void. Waiting alone and unmoving, it is at once still and yet in constant motion. It is the source of all programs. I do not know its name, so I will call it the Tao of Programming."



More information about the Arguslist mailing list