1) I want to populate a combo box with a list of the sites on my web servers (Including VD's) and retriedve the unique identifier that IIS assignes each site. I also want to find out where the log files are located so I can access the log files. Is there
a way to do this in .Net 1.1? Is there a way to do this in 2.0?
2) I want to write a site monitor for our internal sites and need to know how to retrieve the ping time, the response time, size of page retrieved, and any other data that would be helpful in a monitring site. Is there a way to do this in .Net 1.1? Is there
a way to do this in 2.0?
how accessible is the server to you? access to "C:\WINDOWS\system32\Logfiles\W3SVC1"?
from the management console of iis, you may configure the raw log data to be written to any particular directory, such as your web app directory. ...OR..to a dsn (database)!
I know how to get to the logs and where they are stored. What I need to know is if there is a way programically to retrieve a list of all the sites / VD on a IIS server with friendly name and cyprtic name (W3Svc1, etc) so that the insterface would allow the
user to choose which logs they wanted to look at.
Its all stored in the metabase, which is simply an xml file.
to get at it programatically, there are several ways. The best way, imho, is to use the DirectoryEntry in the System.DirectoryServices namespace: new DirectoryEntry("IIS://localhost/w3svc/1/root")
the other ways are to use adsi, wmi, or abo. You'll find code samples of these in the IIS sdk
None
0 Points
1245 Posts
Moniroting information and site information.
Oct 15, 2005 01:11 AM|smehaffie|LINK
2) I want to write a site monitor for our internal sites and need to know how to retrieve the ping time, the response time, size of page retrieved, and any other data that would be helpful in a monitring site. Is there a way to do this in .Net 1.1? Is there a way to do this in 2.0?
Any help will be appreciated.
PC Resources, LLC
None
0 Points
1095 Posts
Re: Moniroting information and site information.
Nov 04, 2005 05:49 AM|DeveloperMCDBA|LINK
from the management console of iis, you may configure the raw log data to be written to any particular directory, such as your web app directory. ...OR..to a dsn (database)!
None
0 Points
1245 Posts
Re: Moniroting information and site information.
Nov 05, 2005 12:06 AM|smehaffie|LINK
PC Resources, LLC
None
0 Points
1095 Posts
Re: Moniroting information and site information.
Nov 05, 2005 01:16 AM|DeveloperMCDBA|LINK
to get at it programatically, there are several ways. The best way, imho, is to use the DirectoryEntry in the System.DirectoryServices namespace: new DirectoryEntry("IIS://localhost/w3svc/1/root")
the other ways are to use adsi, wmi, or abo. You'll find code samples of these in the IIS sdk
None
0 Points
1245 Posts
Re: Moniroting information and site information.
Nov 07, 2005 01:41 AM|smehaffie|LINK
PC Resources, LLC