+ Post New Thread
Results 1 to 9 of 9
Scripts Thread, Script to check if webpage/Eportal is working? in Coding and Web Development; At the moment eportal (our web based MIS system) is a pile of rubbish being polite...! It is constantly crashing ...
  1. #1

    Join Date
    Aug 2007
    Posts
    851
    Thank Post
    106
    Thanked 66 Times in 47 Posts
    Rep Power
    27

    Script to check if webpage/Eportal is working?

    At the moment eportal (our web based MIS system) is a pile of rubbish being polite...!

    It is constantly crashing and needing the eportal services rebooted, Serco cant help us...

    I was wondering if anyone knew of a script that would check that the webpage is loading every 5min or so and if its down, then email or notify me somehow?]

    like some sort of website ping ?

    Cheers

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    Not a script or anything but a free service. - Free Websites Performance, Availability, Traffic Monitoring

    logs when the site is down and sends an e-mail letting you know

    oh and its free

  3. #3

    john's Avatar
    Join Date
    Sep 2005
    Location
    London
    Posts
    10,447
    Thank Post
    1,537
    Thanked 1,069 Times in 934 Posts
    Rep Power
    305
    Slightly OT, but Have you set the services to auto-restart on failure this will help and then script the whole lot to reboot overnight to make sure its all re-set for the next day.

  4. #4

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    How frequently is the service crashing? Every 5 minutes to check a service does sound extreme! Is there anything useful in the event logs?

  5. #5

    Join Date
    Aug 2007
    Posts
    851
    Thank Post
    106
    Thanked 66 Times in 47 Posts
    Rep Power
    27
    Thanks for replies,

    The services dont actually stop, but they do require a restart when eportal slows right down or grinds to a halt.

    I bought a brand new server with fresh install of 2k3 enterprise, and installed the latest release of eportal but it is doing exactly the same as the old server with previous release.

    There is nothing in the system or app logs when this happens and the only log is a warning:

    The system failed to register host (A) resource records (RRs) for network adapter
    with settings:

    Adapter Name : {CF571E43-8A62-43AA-A8D3-DE8430E21849}
    Host Name : eportal
    Primary Domain Suffix : Xxxxxx.local
    DNS server list :
    XX.XX.4.21, XX.XX.4.20
    Sent update to server : XX.XX.4.21
    IP Address(es) :
    XX.XX.4.28

    The reason the system could not register these RRs was because of a security related problem. The cause of this could be (a) your computer does not have permissions to register and update the specific DNS domain name set for this adapter, or (b) there might have been a problem negotiating valid credentials with the DNS server during the processing of the update request.

    You can manually retry DNS registration of the network adapter and its settings by typing "ipconfig /registerdns" at the command prompt. If problems still persist, contact your DNS server or network systems administrator. For specific error code, see the record data displayed below.

    For more information, see Help and Support Center at Events and Errors Message Center: Basic Search.


    any ideas?

  6. #6

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,268
    Thank Post
    55
    Thanked 285 Times in 191 Posts
    Rep Power
    136
    Quote Originally Posted by burgemaster View Post
    At the moment eportal (our web based MIS system) is a pile of rubbish being polite...!

    It is constantly crashing and needing the eportal services rebooted, Serco cant help us...

    I was wondering if anyone knew of a script that would check that the webpage is loading every 5min or so and if its down, then email or notify me somehow?]

    like some sort of website ping ?

    Cheers
    Have you set the Java registry settings? That sorted out all manner ePortal problems for us - it seems very stable in use now - changes detailed below:

    Memory settings in the registry can also be checked by going to Start | Run and typing in regedit. Please note that registry settings are very delicate and no other changes should be made to this area.

    The settings to check are JvmMs and JvmMx. These should have the values 0x00000080 (128) and 0x00000200 (512) as shown. To edit them double click on the name and type in the decimal number that appears in brackets for each value.

  7. #7
    DSapseid's Avatar
    Join Date
    Feb 2007
    Location
    West Sussex
    Posts
    1,155
    Thank Post
    131
    Thanked 54 Times in 47 Posts
    Rep Power
    38
    I use a script in a webpage to check the status of all my servers/switches/printers/aps if it is a internal server could you just use it to ping the ip of the server?

    I used webmans script as a starting point but have now editied portions of it. I have set it to refresh every minute but you can set that. For the script see here http://www.edugeek.net/forums/networ...tml#post167608

  8. #8
    monkeyx's Avatar
    Join Date
    Nov 2006
    Posts
    365
    Thank Post
    8
    Thanked 52 Times in 41 Posts
    Rep Power
    26
    I use the following script to restart our services nightly and helps provide stability.

    We also improved stability by eportal placing on a fast dedicated machine.



    Code:
    'By tim@monkeyx.net
    'WScript.Echo "The script has started."
    ConServices ("Facility Data Server")
    
    'WScript.Echo "The script has completed successfully."
    
    'Function ConServices(strComputer,strService)
    Function ConServices(strService)
    strComputer = "."
    dim slptime
    slptime=20000
    'WScript.Echo "Restarting " & strService & "..."
    
    
    ' Stop dependent services
    Set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
    Set objServiceList = objWMI.ExecQuery("Associators of " _
                     & "{Win32_Service.Name='" & strService & "'} Where " _
                     & "AssocClass=Win32_DependentService " & "Role=Antecedent" )
    For Each objService In objServiceList
    '    WScript.Echo " Stopping " & objService.Name
        objService.StopService()
    Next
    WScript.Sleep slptime  ' Pause to allow services to stop
       
    ' Stop target service
    Set objService = objWMI.Get("Win32_Service.Name='" & strService & "'")
    'WScript.Echo " Stopping " & objService.Name
    objService.StopService()
    WScript.Sleep slptime+slptime   ' Pause to allow service to stop
       
    ' Start target service
    Set objService = objWMI.Get("Win32_Service.Name='" & strService & "'")
    'WScript.Echo " Starting " & objService.Name
    objService.StartService()
    WScript.Sleep slptime   ' Pause to allow service to start
       
    ' Start dependent services
    Set objServiceList = objWMI.ExecQuery("Associators of " _
                     & "{Win32_Service.Name='" & strService & "'} Where " _
                     & "AssocClass=Win32_DependentService " & "Role=Antecedent" )
    For Each objService In objServiceList
    '   WScript.Echo " Starting " & objService.Name
        objService.StartService()
    Next
    End Function

  9. #9

    Join Date
    Aug 2007
    Posts
    851
    Thank Post
    106
    Thanked 66 Times in 47 Posts
    Rep Power
    27
    Thanks for the replies,
    I will have a look at those scripts.

    @ Spuff - Did helpdesk suggest those java reg settings?

    Currently ours are set to 128 and 1024 .. are you on 0.91 ?

    Cheers
    Tim



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 17
    Last Post: 18th June 2010, 01:48 PM
  2. Flash and Shockwave version check webpage?
    By sidewinder in forum Windows
    Replies: 7
    Last Post: 16th January 2010, 06:00 PM
  3. eportal not working after may Census upgrade
    By jamin100 in forum MIS Systems
    Replies: 19
    Last Post: 15th June 2009, 11:11 AM
  4. A script to check for UAC
    By Oops_my_bad in forum Scripts
    Replies: 0
    Last Post: 29th April 2009, 12:31 PM
  5. Replies: 10
    Last Post: 5th September 2008, 12:29 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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