Monitor System Services on Remote Servers
Is there a script that can monitorfew (5 to 6)critical system services on remote servers (up to thirty of them) and send me an e-mail if one of these servicese stops ?
TIA,
Mike
January 26th, 2009 10:19am
There are several ways to do that:
1. You can use the 'Recovery' tab on each service's properties page to start an application that sends you an alert
2. You can use EventTriggers.exe to listen for events that specify a service failure and then use SendMail to send a mail alert
3. You can use the following VBS script to actively monitor the services:
constSERVER_STATUS_RUNNING=4
ConstREMOTE_SERVER="YOUR_REMOTE_SERVER"
ConstSERVICES_LIST="alerter;Browser;netlogon"
constCOMMAND_2_EXECUTE="Sendmail..."
dimarrServices
dimsService
dimoService
dimoShell
arrServices=split(SERVICES_LIST,";")
foreachsServiceinarrServices
setoService=getObject("WinNT://"&REMOTE_SERVER&"/"&sService&",service")
ifnotoService.Status=SERVER_STATUS_RUNNINGthen
setoShell=wscript.createobject("wscript.shell")
oShell.runCOMMAND_2_EXECUTE,0,0
setoShell=nothing
endif
next
Hope it helped.
Thanks,
Asaf Ganot. www.smart-x.com
Free Windows Admin Tool Kit Click here and download it now
January 26th, 2009 8:40pm
Hello,
Based on my research, native Windows do not have such feature. SBS and EBS have monitoring feature which can achieve the requirement. For pure Windows 2003 or Windows 2008, you can consider installing SCCM, SCE or MOM to achieve this purpose. If it is possible, you may deploy and install these software.
If you would like to develop a custom application to monitor these services and send alert, I suggest that you post to the MSDN forums below so that you can get the most qualified pool of respondents.
http://social.msdn.microsoft.com/Forums/en-US/categories/
The following information for your reference:
If you check the properties for any service in services mmc (start -->control panel --> administrative tools --> services) there is a tab called "Recovery" where one can specify the action needs to be taken in case of service fails.This recovery option works well if service is up and running and it has failed due to some reason.
Hope this helps. Also if you have any questions on this issue, please feel free to let me know.Best regards,Tom ZhangTom Zhang MSFT
January 27th, 2009 11:14am


