KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Can any test check multiple services as part of one test?

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Gavin



Joined: 24 Sep 2009
Posts: 58

PostPosted: Thu Dec 20, 2012 7:58 am    Post subject: Can any test check multiple services as part of one test? Reply with quote

I can't see any way to do this in the current service check. For example, I'd like to check all BackupExec services are running on a server, of which it has 6 services. 6 individual tests seems like a waste of time for configuration and I'd rather have them as one service and when it fails it simply inserts the service that failed into the reply value.

Any options available?
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Thu Dec 20, 2012 8:26 am    Post subject: Reply with quote

You may use WMI test to check State of all 6 Services using one WMI query.
Query may look like the following:
Select Caption from Win32_Service WHERE (Caption like "Backup Exec%") and (State<>"Running")
WMI test settings:
Alert if: row count is > than 0
In instance is not available, set Ok status
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Thu Dec 20, 2012 8:30 am    Post subject: Reply with quote

P.S.
This WMI test will only show number of services that are not started.
If you want to see name of stopped service, you will need to use Shell Script or Active Script test method with custom made script.

Please check for details at:
Shell Script test method: http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#chkShell
Active Script test method: http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#script
Back to top
View user's profile Send private message Send e-mail Visit poster's website
AlexL



Joined: 18 Jul 2006
Posts: 62
Location: Switzerland

PostPosted: Mon Feb 11, 2013 9:10 am    Post subject: Re: Can any test check multiple services as part of one test Reply with quote

See this thread: http://www.ks-soft.net/cgi-bin/phpBB/viewtopic.php?t=6558&highlight=

Alex
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index