install nsclient with nrpe
allow port tcp 5666 on firewall
Put check_winservice.exe in Program Files\NSClient++\scripts
Edit nsclient.ini as admin:
[/settings/external scripts/scripts]
check_adss=check_winservice.exe –service ADSelfServicePlus –warning 200 –critical 600
restart nsclient
test from nagios
su – nagios
cd /usr/local/nagios/libexec
./check_nrpe -H 192.168.1.10 -c check_adss
SERVICE OK – 1 service(s).|’services’=1;200;600