Alerting on HTTP 404 from IIS

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
mrickey
Posts: 2
Joined: Tue Jan 26, 2010 3:20 pm
Location: California, USA

Alerting on HTTP 404 from IIS

Post by mrickey »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sure, just setup HTTP or URL test. If web server returns any HTTP error code (like a 404 and 500 errors), HostMonitor will set "bad" test status.

Regards
Alex
mrickey
Posts: 2
Joined: Tue Jan 26, 2010 3:20 pm
Location: California, USA

missed it a little

Post by mrickey »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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.
So you want to receive alert when some user typed invalid URL in his web browser (request page that does not exist)?
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...
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.
Have you missed NT Event Log and Text Log test methods?
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
Post Reply