Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_winsvc

Rating
3 votes
Favoured:
0
Hits
99397
Files:
FileDescription
check_winsvccheck_winsvc Perl script (v.1.01)
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Use NC_Net/check_nt to check all Automatic Windows services First use ENUMSERVICE to get a list of services set for Automatic startup, then check them with SERVICESTATE to see if any service is down.
I wrote check_winsvc to simplify checking of Windows services. This check script vill return OK if all services set to Automatic start on a Windows server are running. You can supply an exclude list to avoid paging on unimportant services.

check_winsvc requires NC_Net on the Windows server and NC_Net version of check_nt.

Usage: check_winsvc -H host -s secret -p port -t timeout -d data -E exclude_list

The only required argument is -H. All arguments except -t and -E are passed directly to check_nt.

Please read comments in the header of this script for details about services containing an ampersand.
Reviews (2)
bypsyllent, December 17, 2013
I love this plugin but we often get Service Unknown warning alerts where the service names appear to be cut off. Is there something in the ENUMSERVICE service list function of the script that would cause service names to be cut off?
Please, use the parameter "-a" in the NC_net command, otherwise you get problems, when there are too many Services.