Alert for automatic services not started

Need new test, action, option? Post request here.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

and if the instance becomes unavailable for some other reason will it change to BAD or stay as OK?
If WMI class becomes unavailable or target system become unavailable, HostMonitor will set Unknown status and show error message in Reply field.
You may easily check this... Just type wrong class name or wrong hostname and you will see how HostMonitor behaves.

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Also is there a way to view the result so we can see quickly what services are down without logging on to the remote server?
HostMonitor cannot display all rows retrieved by WMI query.

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

I recently needed to implement monitoring all running services in Server 2008 R2.

There is an issue with the "Software Protection Service" in Server 2008 R2 that is addressed here.
http://www.quantumofgeek.com/2010/04/so ... -headache/

Essentially the service must be set Automatic to function properly. However the state of the service most of the time is stopped. Periodically the service is started and then stopped when needed. Pretty annoying.

A slight modification the th WQL query below removes the service from the query but the service will not be monitored.

Code: Select all

SELECT Name FROM Win32_Service WHERE Started=0 AND StartMode='Auto' AND Name <> "sppsvc"
Regards
rasc
Posts: 95
Joined: Sun Oct 11, 2009 8:25 am

Post by rasc »

KS-Soft wrote:
Is there a way (maybe with WMI?) to monitor if all services set to automatic are started? That would be handy when not needing to monitor every service individually.
Sure. Such example listed in the manual.
===================
The query: SELECT Name FROM Win32_Service WHERE Started=0 AND StartMode='Auto' shows all services which have not started and have the start mode configured to "Automatic".
===================
Set "Alert if row count is > than 0" option.

Regards
Alex
That's a great tip, I was just searching for this. But how would I start these failed services? %ServiceName% won't work, will it?

Thanks, rasc
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

That's a great tip, I was just searching for this.
BTW: Its listed in the manual :)
But how would I start these failed services? %ServiceName% won't work, will it?
No, it will not work. You should start services manually or using some script...

Regards
Alex
rasc
Posts: 95
Joined: Sun Oct 11, 2009 8:25 am

Post by rasc »

KS-Soft wrote:
That's a great tip, I was just searching for this.
BTW: Its listed in the manual :)
But how would I start these failed services? %ServiceName% won't work, will it?
No, it will not work. You should start services manually or using some script...

Regards
Alex
Well, I guessed so. But how would I do it? Or would you add it to the 'whish list', please? Because it again takes me to define each and every service of any surveilled computer individually.
See http://www.ks-soft.net/cgi-bin/phpBB/vi ... 8147#28147

Thank you, rasc
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Because it again takes me to define each and every service of any surveilled computer individually
Not necessarily. I think you may create VB or PowerShell script that will restart every "nonstarted" service :roll:

On the other hand... I don't know what exactly is situation in your environment but I think its not normal when different services cannot start. I think HostMonitor should check for such problems (because problem may appear "suddenly" after some software installation or upgrade) but each of such problem should be investigated and corrected manually.
If its not possible to correct problem with some specific service, then you may setup test that will check and restart this specific service.
Just IMHO

Regards
Alex
Post Reply