One of the problematic services is 'MSSQL$HPWJA'
So without escaping or double dollar:
Code: Select all
/usr/local/nagios/libexec/check_nrpe_v3 -2 -P 10240 -H hostname -t 30 -c check_service -a "filter=start_type = 'auto' and name not in ('Bonjour Service','clr_optimization_v4.0.30319_32','clr_optimization_v4.0.30319_64','DocAve 6 Report Service','DocAve 6 Media Service','gupdate','MSSQL$HPWJA','NetTcpPortSharing','RemoteRegistry','ShellHWDetection','sppsvc','stisvc','TBS','TrustedInstaller','wuauserv')"
CRITICAL: MSSQL$HPWJA=stopped (auto), delayed ()Code: Select all
/usr/local/nagios/libexec/check_nrpe_v3 -2 -P 10240 -H hostname -t 30 -c check_service -a "filter=start_type = 'auto' and name not in ('Bonjour Service','clr_optimization_v4.0.30319_32','clr_optimization_v4.0.30319_64','DocAve 6 Report Service','DocAve 6 Media Service','gupdate','MSSQL$$HPWJA','NetTcpPortSharing','RemoteRegistry','ShellHWDetection','sppsvc','stisvc','TBS','TrustedInstaller','wuauserv')"
CRITICAL: MSSQL$HPWJA=stopped (auto), delayed ()Code: Select all
/usr/local/nagios/libexec/check_nrpe_v3 -2 -P 10240 -H hostname -t 30 -c check_service -a "filter=start_type = 'auto' and name not in ('Bonjour Service','clr_optimization_v4.0.30319_32','clr_optimization_v4.0.30319_64','DocAve 6 Report Service','DocAve 6 Media Service','gupdate','MSSQL\\$$HPWJA','NetTcpPortSharing','RemoteRegistry','ShellHWDetection','sppsvc','stisvc','TBS','TrustedInstaller','wuauserv')"
CRITICAL: MSSQL$HPWJA=stopped (auto), delayed ()Code: Select all
/usr/local/nagios/libexec/check_nrpe_v3 -2 -P 10240 -H hostname -t 30 -c check_service -a "filter=start_type = 'auto' and name not in ('Bonjour Service','clr_optimization_v4.0.30319_32','clr_optimization_v4.0.30319_64','DocAve 6 Report Service','DocAve 6 Media Service','gupdate','MSSQL\$$HPWJA','NetTcpPortSharing','RemoteRegistry','ShellHWDetection','sppsvc','stisvc','TBS','TrustedInstaller','wuauserv')"
CRITICAL: MSSQL$HPWJA=stopped (auto), delayed ()Code: Select all
/usr/local/nagios/libexec/check_nrpe_v3 -2 -P 10240 -H hostname -t 30 -c check_service -a "filter=start_type = 'auto' and name not in ('Bonjour Service','clr_optimization_v4.0.30319_32','clr_optimization_v4.0.30319_64','DocAve 6 Report Service','DocAve 6 Media Service','gupdate','MSSQL"$$"HPWJA','NetTcpPortSharing','RemoteRegistry','ShellHWDetection','sppsvc','stisvc','TBS','TrustedInstaller','wuauserv')"
CRITICAL: MSSQL$HPWJA=stopped (auto), delayed ()Willem