I'm trying to monitor an IIS application (asp.net/c#, if it matters). The server is running Windows Server 2008 and RMA for Windows.
I would like to capture IIS related events. Like a 404 and 500 errors. Is there a way to do this?
While searching, I found many messages about the monitoring software getting a 404 when testing a web site. I'm looking for configuration and runtime errors on the web application.
Any help would be greatly appreciated.
Michael
Alerting on HTTP 404 from IIS
missed it a little
I don't need to test for specific URLs that are supposed to work, I'm more concerned about things that are missing or have invalid URLs. My intent is not to look for specific pages, but to be notified when a page, or a piece of a page, is missing. Or, even when there are runtime errors on the site.
IIS identifies this, Microsoft SMS (what I used at my old company) will generate this type of alert.
This is a little different that most the alerts I see available. It seems like your alerts are based on measurements, not events. I don't even see how to alert based on an event log entry.
IIS identifies this, Microsoft SMS (what I used at my old company) will generate this type of alert.
This is a little different that most the alerts I see available. It seems like your alerts are based on measurements, not events. I don't even see how to alert based on an event log entry.
So you want to receive alert when some user typed invalid URL in his web browser (request page that does not exist)?I don't need to test for specific URLs that are supposed to work, I'm more concerned about things that are missing or have invalid URLs. My intent is not to look for specific pages, but to be notified when a page, or a piece of a page, is missing. Or, even when there are runtime errors on the site.
I think its pretty easy for 404 error codes. IIS provides some Perofrmance Counters, SNMP and WMI counters:
Perofrmance Counters (use Total Not Found Errors counter)
http://www.microsoft.com/technet/prodte ... x?mfr=true
SNMP Counters (use totalNotFoundErrors counter)
http://www.microsoft.com/technet/prodte ... x?mfr=true
WMI
http://msdn.microsoft.com/en-us/library/ms525309.aspx
So you may use Performance Counter, SNMP Get and WMI test methods:
http://www.ks-soft.net/hostmon.eng/mfra ... erfcounter
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#wmi
http://www.ks-soft.net/hostmon.eng/mfra ... tm#chkSNMP
I would recommend SNMP Get method, its the fastest protocol and it requires less resources than Performance Counters of WMI
Regarding error code 500... I am not sure how IIS can provide such information. I do not see appropriate counter. I think it should record event into NT Event Log in such case, so you may use NT Event Log test method. Also I think you may use Text Log test method to check server logs.
Its better to ask Microsoft...
Have you missed NT Event Log and Text Log test methods?This is a little different that most the alerts I see available. It seems like your alerts are based on measurements, not events. I don't even see how to alert based on an event log entry.
http://www.ks-soft.net/hostmon.eng/mfra ... m#chkNTLog
http://www.ks-soft.net/hostmon.eng/mfra ... tm#textlog
Also if you need to receive events, use SNMP Trap test method
http://www.ks-soft.net/hostmon.eng/mfra ... m#snmptrap
Regards
Alex