There are two issues here.
1) Net Tools states that the name is not resolved. It has assumed that the string:
"username:password@"
..is part of the hostname and has attempted to include that as part of a DNS lookup.
Apart from anything else, ":" and "@" are not legal characters in a hostname.
However, none of this really matters anyway because the tool cannot handle the other
critical part of the login - the base64 encoding of the Authorization Header. But
I've gone ahead and logged this as a feature request.
2) The second issue (how to monitor a web page that requires login) can be handled. To
answer the question, I give you some text I have knocked together as an update to the
existing Knowledge Base article:
http://support.ipswitch.com/kb/WG-20010522-DM01.htm
===========
This can be done by adding an Authorization HTTP Header to the SEND string in your
"HTTP Content Scan" service check. To set this up, you will need a network protocol
analyzer such as Ethereal, Microsoft Network Monitor, or Network Associates Sniffer.
If the URL, for example, is:
http://not-any.com/reports/quarterly/inventory_index.html
..then use the analyzer to capture the login string from your web browser to the web
page. Login to the web page.
The packet sniffer will capture the encoded login authentication i.e.:
"Authorization: Basic 3xXw32tl99DxpE="
This Header will be unique to the website and thus it will only be usable for that
website.
Next, copy the "HTTP Content Scan" service definition, creating a new definition that
you will use to monitor just this site, and modify the SEND string to include both the
Authorization Header and the details of the specific page that you are checking.
Thus, in v7.0, the definition:
Send=GET / HTTP/1.0\r\nAccept: */*\r\nUser-Agent: Ipswitch_Whatsup/4.0\r\n\r\n
Expect=~.*</html>
would become:
Send=GET /reports/quarterly/inventory_index.html HTTP/1.0\r\nAccept:
*/*\r\nUser-Agent: Ipswitch_Whatsup/4.0\r\nAuthorization: Basic 3xXw32tl99DxpE=\r\n\r\n
Expect=~.*</html>
Note that the above Send lines are intended to be single lines. They may need to be
unwrapped if they display as more than one line as you are reading this article.
Advice on how to modify the Expect string is contained here:
http://support.ipswitch.com/kb/WG-19990924-DM02.htm
==========
Hope this helps.
Mark Symons
Ipswitch, Inc
Augusta GA
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bryant, Rob
Sent: Wednesday, April 10, 2002 10:39
To: [EMAIL PROTECTED]
Subject: RE: [WhatsUp Forum] Need to log in to website before doing a
content scan
I have a intranet website that I can get to using
http://username:[EMAIL PROTECTED] in the address bar.
When using net tools it states name not resolved. I need to find a way
to add it to either my custom service to login first or add it to the
properties of that server inside my map. Anyone here know how to do
that?
Rob
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/