Reply to topic  [ 9 posts ] 
Software that alerts when a service stops 
Author Message
Doesn't have much of a life
User avatar

Joined: Tue May 05, 2009 5:52 pm
Posts: 1899
Reply with quote
Hi

Does anyone know of any software that can send an email alert when a service stops. We have a call recording package and every so often one of its services just stops. The built in Performance and Alerts does not cover this.

The software runs on Windows XP

Thank you

_________________
Image

My Flickr Page

Now with added ball and chain.


Tue Jul 14, 2009 8:10 am
Profile
Site Admin
User avatar

Joined: Thu Apr 23, 2009 5:53 pm
Posts: 8603
Location: location, location
Reply with quote
We use hounddog monitoring on all our servers and that can be set to do that.

Or batch file an email & set the service to run it when it fails

_________________
Support X404, use our Amazon link
Get your X404 tat here
jonlumb wrote:
I've only ever done it with a chicken so far, but if required I wouldn't have any problems doing it with other animals at all.


Tue Jul 14, 2009 9:37 am
Profile WWW
Doesn't have much of a life
User avatar

Joined: Tue May 05, 2009 5:52 pm
Posts: 1899
Reply with quote
How would I go about making a batch file for this?

I've never really delved into scripting at this level.

I will look at HoundDog as well.

_________________
Image

My Flickr Page

Now with added ball and chain.


Tue Jul 14, 2009 10:54 am
Profile
Site Admin
User avatar

Joined: Fri Apr 24, 2009 6:12 am
Posts: 7011
Location: Wiltshire
Reply with quote
I use this
http://www.woodstone.nu/salive/

_________________
<input type="pickmeup" name="coffee" value="espresso" />


Tue Jul 14, 2009 11:07 am
Profile WWW
Site Admin
User avatar

Joined: Thu Apr 23, 2009 5:53 pm
Posts: 8603
Location: location, location
Reply with quote
AlunD wrote:


Looks good.

Free trial with no time limits?

_________________
Support X404, use our Amazon link
Get your X404 tat here
jonlumb wrote:
I've only ever done it with a chicken so far, but if required I wouldn't have any problems doing it with other animals at all.


Tue Jul 14, 2009 11:46 am
Profile WWW
Site Admin
User avatar

Joined: Fri Apr 24, 2009 6:12 am
Posts: 7011
Location: Wiltshire
Reply with quote
saspro wrote:
AlunD wrote:


Looks good.

Free trial with no time limits?

Last time I downloaded it was. ( I have the executable if needed. ) :D

_________________
<input type="pickmeup" name="coffee" value="espresso" />


Tue Jul 14, 2009 11:49 am
Profile WWW
Site Admin
User avatar

Joined: Thu Apr 23, 2009 5:53 pm
Posts: 8603
Location: location, location
Reply with quote
Just running a test now, I like no time limits.
Might even buy it for work.

_________________
Support X404, use our Amazon link
Get your X404 tat here
jonlumb wrote:
I've only ever done it with a chicken so far, but if required I wouldn't have any problems doing it with other animals at all.


Tue Jul 14, 2009 12:39 pm
Profile WWW
Site Admin
User avatar

Joined: Fri Apr 24, 2009 6:12 am
Posts: 7011
Location: Wiltshire
Reply with quote
Really surprised you haven't come across it before. It's much industry standard, well at least I thought it was.

_________________
<input type="pickmeup" name="coffee" value="espresso" />


Tue Jul 14, 2009 12:42 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
I do this...

Code:
@echo off

set loglocation=\\server1\C$\HettonLogs\HettonServiceLog.log

sc \\server1 query "Hetton integration service" | find /I "4  RUNNING"
IF "%ERRORLEVEL%"=="0" GOTO RUNNING
IF NOT "%ERRORLEVEL%"=="0" GOTO STOPPED

:RUNNING
date /t >> %loglocation%
time /t >> %loglocation%
echo Hetton integration service running >> %loglocation%
GOTO LINE

:STOPPED
date /t >> %loglocation%
time /t >> %loglocation%
echo Hetton integration service stopped! >> %loglocation%
echo Starting service ... >> %loglocation%
sc \\server1 start "Hetton integration Service"

ping localhost -n 11 > nul

sc \\server1 query "Hetton integration service" | find /I "4  RUNNING"
IF "%ERRORLEVEL%"=="0" GOTO EMAIL
IF NOT "%ERRORLEVEL%"=="0" GOTO STOPPED
GOTO LINE

:EMAIL
echo Service started successfully! >> %loglocation%
c:\AdminScripts\HettonEmail.vbs
GOTO LINE

:LINE
echo. >> %loglocation%

and put it in a scheduled task.

hettonemail.vbs contains ...
Code:
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "server"
objEmail.To = "email address"
objEmail.Subject = "Hetton Integration Service"
objEmail.Textbody = "Hetton Integration Service had stopped running.  Restarted succesfully!"
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "VPEXB2"
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
and sends an email to the email list.

Works very well. Runs every houir to check the service.

If it's running it logs that it's ok.

If it has stopped then it restarts it, emails to let us know and logs it.

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Tue Jul 14, 2009 4:32 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.