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.
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.
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?
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
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
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