Need .NET website monitor. Takes list of URLs ??" each with project name, monitoring frequency (1-60 mins) and a text string to find in HTML - from db (MSSQL2000). Two scripts required. Script 1: Every minute, query db for list of projects to monitor that minute. Loop through URLs. For each call script 2 on remote machine passing URL and text string to find in returned HTML. Script 2: GET requested URL, search returned HTML for text string. Return response time (how long it took) and response code (1=found text,2=no response,3 or higher=response but didn’t find text). Script 2 pulls additional text strings and response codes from text file. If doesn’t find required project text, goes through list in text file (e.g. 3=found “cold fusion error?? 4=found “page not displayed??, etc.). Script 1 should pull list from text file of server names and URL’s for the location of script 2 (often run script 2 on 3 different servers to see if site down worldwide or just locally). Script 1 should save project name, URL, monitoring server name, reponse code, response time and datetime stamp to SQL server (if no response from monitoring server, set response code to 0). Script 1 also saves record to db in heartbeat table every minute to show it ran OK. Email Notifications Monitoring server failure ??" X or more 0 responses from monitoring server URL failure ??" X or more >1 response codes from URL Project failure ??" X or more >1 responses from project
## Deliverables
Need .NET website monitor. Takes list of URLs ??" each with project name, monitoring frequency (1-60 mins) and a text string to find in HTML - from db (MSSQL2000). Two scripts required. Script 1: Every minute, query db for list of projects to monitor that minute. Loop through URLs. For each call script 2 on remote machine passing URL and text string to find in returned HTML. Script 2: GET requested URL, search returned HTML for text string. Return response time (how long it took) and response code (1=found text,2=no response,3 or higher=response but didn’t find text). Script 2 pulls additional text strings and response codes from text file. If doesn’t find required project text, goes through list in text file (e.g. 3=found “cold fusion error?? 4=found “page not displayed??, etc.). Script 1 should pull list from text file of server names and URL’s for the location of script 2 (often run script 2 on 3 different servers to see if site down worldwide or just locally). Script 1 should save project name, URL, monitoring server name, response code, response time and datetime stamp to SQL server (if no response from monitoring server, set response code to 0). Script 1 also saves record to db in heartbeat table every minute to show it ran OK. Email Notifications from script 1 ??" comma delimited list of email addresses for each in text file I can modify. - Monitoring server failure ??" X or more 0 responses from monitoring server - URL failure ??" X or more >1 response codes from URL - Project failure ??" X or more >1 responses from project I set X using text file for each of three failures. No interface required. Will provide data tables, just need working ASP.NET/c# code for script 1 and script 2.
## Platform
.NET c# Win2000/Win2003Web