[SOLVED] How do i Exclude multiple services check_wmi_plus
Posted: Mon May 18, 2015 3:57 am
How do i exclude multiple services from the check_wmi_plus check?
I have the following: this works for 1 service
I still want to exclude: SQL Full-text Filter Daemon Launcher and SQL Server Reporting Services and SQL Server Agent so only SQL Server is to be checked.
What am i missing here? Is there a way to check 1 specific service when there is a match in (service description)?
I have the following: this works for 1 service
Code: Select all
[root@ libexec]# /[b]usr/local/nagios/libexec/check_wmi_plus.pl -H SQLSERVER -u 'username' -p 'password' -m checkservice -a Auto -a MSSQLSERVER -c 1 -o 'MSSQLServerOLAPService' -t 600[/b]
OK - Found 4 Services(s), 3 OK and 1 with problems (1 excluded). 'SQL Full-text Filter Daemon Launcher (MSSQLSERVER)' (MSSQLFDLauncher) is Running, 'SQL Server (MSSQLSERVER)' (MSSQLSERVER) is Running, 'SQL Server Reporting Services (MSSQLSERVER)' (ReportServer) is Running, 'SQL Server Agent (MSSQLSERVER)' (SQLSERVERAGENT) is Stopped.|'Total Service Count'=4; 'Service Count OK State'=3; 'Service Count Problem State'=1;1; 'Excluded Service Count'=1;
What am i missing here? Is there a way to check 1 specific service when there is a match in (service description)?