Nagios plugin for Windows services

1 min read

check-winservice is a Nagios plugin to monitor services on the local Windows system. You can filter services based on name, state or start mode. Negation is also possible. Check_winservice has also a service snapshot fingerprint capability which may help you to monitor changes on service configurations. It previously existed as check_winservice.

Examples:

check_winservice --startmode auto --state !running --critical 0
Returns CRITICAL if there exists automatic services which are not running.
check_winservice --service TroubleMaker1,TroubleMaker2 --state running --critical 0
Returns CRITICAL if services TroubleMaker1 or TroubleMaker2 are running.
check_winservice --critical 1 -startmode boot,system -service !BootA,!BootB,!SystemC
Returns CRITICAL if there is at least one service except service BootA, BootB and SystemC, which is configured to start during boot or system phase.
check_winservice --warning 200 --critical 300
Returns WARNING or CRITICAL if the number of defined services exceeds 200 or 300 respectively.
check_winservice --startmode !manual --service Manual1,Manual2 --service Manual3 --critical 0
Returns CRITICAL if services Manual1, Manual2 or Manual3 are not configured to run manually.
check_winservice --fingerprint --state running
Print the service snapshot fingerprint for running services.
check_winservice --fingerprint xxxxxxxxxxxxxxxxxxxxxxx --state running
Returns CRITICAL if the specified fingerprint xxxxxxx does not match the service snapshot fingerprint of running services

Github Repo