Results 1 to 5 of 5
  1. #1

    website monitoring

    I'm looking for a script that checks my website every hour and runs iisreset if it receives an error or no response.

    I found a few (can't post url here) $199, $290...

    but All these programs are too expensive for me.
    Can I do this with DOS or vbscript, I don't need anything complicated.

    1.Download a file from a website
    2. If the download fails run iisreset
    *I'll just add this batch file to schedule tasks in windows.

    Thanks.

  2. #2
    Join Date
    Mar 2004
    Posts
    1,301
    checkout www.alerta.com or go and search on www.hotscripts.com

  3. #3
    Join Date
    May 2004
    Location
    San Francisco, CA
    Posts
    1,273

  4. #4
    Join Date
    Jun 2004
    Location
    Dallas, Texas
    Posts
    2
    Go to checkwebsite.org and get responser.zip

    It requires Perl. Add a line at line 124 that says
    `iisreset`;

    Those are BACKquotes, and the ; is required. Save it and run it. It'll also email you (read the docs because you'll have to put in the websites to monitor and set your SMTP server. You can turn the emailing off also if you wish.

    It is a run-once program, so you may want to schedule it.

    What I did was create a batch file -- remember, this is Windows as we're talking about using IIS

    I named the file responser.bat

    tart
    perl responser.pl
    sleep 60
    goto start

    That's the whole file, 4 lines. Sleep.exe is a resource kit utility. 60 is the seconds it waits before starting again. I'll probably change it to 600.. no need to check every single minute.

  5. #5
    Join Date
    Jun 2004
    Location
    Dallas, Texas
    Posts
    2
    Would one of you nice folks that has the ability to email kuya, please email him/her to alert of my response (and reply so we don't fill up his/her mailbox ). I don't know if he/she's still looking since it's been a month since the request.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •