In order to monitor windows service status, recently I added some monitors in my nagios application.
First I created a check command named check_win_service, the command use the check_nrpe script
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckServiceState -a ShowAll $ARG1$Code: Select all
MSSQLServerOLAPService SQLSERVERAGENT MSSQL\\\$SQLEXPRESS MSSQLSERVERCode: Select all
Status Information: OK: MSSQLServerOLAPService: started, SQLSERVERAGENT: started, MSSQLSERVER: startedCode: Select all
Status Information: CRITICAL: MSSQLServerOLAPService: started, SQLSERVERAGENT: started, MSSQL$SQLEXPRESS: started, MSSQLSERVER$: not found (critical)Please give me some ideas or suggestions, thanks in advance for your help.
Regards,
Jun