# File rbot/dbplugins/dash.rb, line 20
  def getdash
    query = "/auth.cgi"
    ontimer = false
    proxy_host = nil
    proxy_port = nil

    http = Net::HTTP.new("uk.dash.dweb.intranet.db.com", 80, proxy_host, proxy_port)

    req = Net::HTTP::Get.new(query)
    req.basic_auth "dweb", "tigtpli1999"
    http.start {|http|
      resp = http.request(req)
      if resp.code == "200"
        due = false
        result = resp.body
        # cheeeeeeeeeze
        if(result.length > 0)
          hosts = Hash.new
          result.each_line {|l|
            if (l =~ /"link5">(.*)<\/a><\/b><\/font><br><\/td><td align=right><img src="\/images\/(.*)\.gif" align=right><\/td>/)
              puts $1, $2
              hosts[$1] = $2 unless($2 == "green")
            end
          }
          if(hosts.length > 0)
            response = ""
            hosts.sort.each {|a|
              host = a[0]
              col = a[1]
              response += ", " if(response.length > 0)
              response += "#{host} is #{col}"
            }
            return "wuh-oh, #{response}"
          else
            return false
          end
        end
      else
        return "got reponse code #{resp.code} :("
      end
    }
    return false
  end