burgemaster Posted June 10, 2009 Posted June 10, 2009 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
FN-GM Posted June 10, 2009 Posted June 10, 2009 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
john Posted June 10, 2009 Posted June 10, 2009 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.
Michael Posted June 10, 2009 Posted June 10, 2009 How frequently is the service crashing? Every 5 minutes to check a service does sound extreme! Is there anything useful in the event logs?
burgemaster Posted June 11, 2009 Author Posted June 11, 2009 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?
SpuffMonkey Posted June 11, 2009 Posted June 11, 2009 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.
DSapseid Posted June 11, 2009 Posted June 11, 2009 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/networks/16832-helpdesk-network-status.html#post167608
Guest monkeyx Posted June 11, 2009 Posted June 11, 2009 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. 'By [email protected] '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
burgemaster Posted June 12, 2009 Author Posted June 12, 2009 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now