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 ...
-
10th June 2009, 10:02 PM #1 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
-
-
IDG Tech News
-
10th June 2009, 10:04 PM #2 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
-
-
10th June 2009, 10:33 PM #3 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.
-
-
10th June 2009, 10:52 PM #4 How frequently is the service crashing? Every 5 minutes to check a service does sound extreme! Is there anything useful in the event logs?
-
-
11th June 2009, 08:15 AM #5 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?
-
-
11th June 2009, 11:31 AM #6 
Originally Posted by
burgemaster
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.
-
-
11th June 2009, 12:48 PM #7 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 Helpdesk network status.
-
-
11th June 2009, 01:29 PM #8 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
-
-
12th June 2009, 02:06 PM #9 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:
Similar Threads
-
By triggmiester in forum Coding
Replies: 17
Last Post: 18th June 2010, 12:48 PM
-
By sidewinder in forum Windows
Replies: 7
Last Post: 16th January 2010, 06:00 PM
-
By jamin100 in forum MIS Systems
Replies: 19
Last Post: 15th June 2009, 10:11 AM
-
By Oops_my_bad in forum Scripts
Replies: 0
Last Post: 29th April 2009, 11:31 AM
-
By Geoff in forum Scripts
Replies: 10
Last Post: 5th September 2008, 11:29 AM
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
-
Forum Rules