The checks shown on this page are generated using the --iexample=1 parameter.
A valid -H HOSTNAME -u USER and -p PASSWORD must also be passed on the command line.
The examples are run against a machine (which is not very busy) running Windows Server 2008 R2, IIS v7, SQL Express 2008 and Exchange 2010.
check_wmi_plus.pl -H HOST -u USER -p PASS --version
Version: 1.53
Collecting first WMI sample because the previous state data file (/tmp/cwpss_somefilename.state) contained no data. Results will be shown the next time the plugin runs.
then you need to run the command a second time to see the output.check_wmi_plus.pl -H HOST -u USER -p PASS -m checkcpu
OK (Sample Period 532 sec) - Average CPU Utilisation 0.32%|'Avg CPU Utilisation'=0.32%;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkcpu -w 1 -c 90
WARNING (Sample Period 0 sec) - [Triggered by _AvgCPU>1] - Average CPU Utilisation 2.00%|'Avg CPU Utilisation'=2.00%;1;90;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkcpuq
OK - Average CPU Queue Length 0.0 (3 points with 1 sec delay gives values: 0, 0, 0)|'Avg CPU Queue Length'=0.0;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkcpuq -a 5 -y 0
OK - Average CPU Queue Length 0.0 (5 points with 0 sec delay gives values: 0, 0, 0, 0, 0)|'Avg CPU Queue Length'=0.0;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkdrivesize -a c:
UNKNOWN - Could not find a drive matching 'c:' or the WMI data returned is invalid. Available Drives are
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkdrivesize -o 1 -3 1
OK - Overall Disk Total=0.00GB, Used=0.00GB (0%), Free=0.00GB (0%) |'Overall Disk Space'=0.00GB; 'Overall Disk Utilisation'=0%;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkeventlog
OK - 0 event(s) of at least Severity Level "Error", were recorded in the last 1 hours from the System Event Log.|'Event Count'=0;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkeventlog -a application -o 2 -3 4
OK - 0 event(s) of at least Severity Level "Warning", were recorded in the last 4 hours from the application Event Log.|'Event Count'=0;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkfileage -a c:/pagefile.sys -w 10min -c 30min:
WARNING - [Triggered by _FileAge>10min] - Age of File c:/pagefile.sys is 03:32:37 (212min) or 3.54hr(s).|'c:/pagefile.sys Age'=3.54hr;0.166666666666667;0.5;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkfilesize -a c:/pagefile.sys -w 1500m -c 2g
CRITICAL - [Triggered by FileSize>2g] - File c:/pagefile.sys is 2.284GB. Found 1 instance(s).|'c:/pagefile.sys Size'=2452316160bytes;1572864000;2147483648; 'File Count'=1;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkfoldersize -a c:/
OK - Folder c:/ is 4.276GB. Found 6 files(s). (List is on next line)|'c:/ Size'=4591154667bytes; 'File Count'=6; The file(s) found are c:\autoexec.bat
c:\bootmgr
c:\bootsect.bak
c:\config.sys
c:\hiberfil.sys
c:\pagefile.sys
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkmem
OK - Physical Memory: Total: 1.991GB - Used: 571.426MB (28%) - Free: 1.433GB (72%)|'Physical Memory Used'=599183360Bytes; 'Physical Memory Utilisation'=28%;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkmem -w 40 -c 90
OK - Physical Memory: Total: 1.991GB - Used: 571.48MB (28%) - Free: 1.433GB (72%)|'Physical Memory Used'=599240704Bytes; 'Physical Memory Utilisation'=28%;40;90;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkmem -w _MemFree%=70:
OK - Physical Memory: Total: 1.991GB - Used: 571.496MB (28%) - Free: 1.433GB (72%)|'Physical Memory Used'=599257088Bytes; 'Physical Memory Utilisation'=28%;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checknetwork
No Network Interfaces specified. Valid Interface Names are:
Realtek RTL8169_8110 Family PCI Gigabit Ethernet NIC [NDIS 6.0], Local Area Connection, (192.168.220.238,fe80::7070:1958:693f:c2b0), 00:11:09:61:DB:AF
Specify the -a parameter with an adapter name. Use ' ' around the adapter name.
check_wmi_plus.pl -H HOST -u USER -p PASS -m checknetwork -a LAN0
No Network Interfaces specified. Valid Interface Names are:
Realtek RTL8169_8110 Family PCI Gigabit Ethernet NIC [NDIS 6.0]
Realtek RTL8169_8110 Family PCI Gigabit Ethernet NIC [NDIS 6.0], Local Area Connection, (192.168.220.238,fe80::7070:1958:693f:c2b0), 00:11:09:61:DB:AF
Specify the -a parameter with an adapter name. Use ' ' around the adapter name.
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkpage -a auto -o .
Overall Status - OK. Individual Page Files Detail: OK - C:\pagefile.sys Total: 2.283GB - Used: 0B (0%) - Free: 2.283GB (100%), Peak Used: 0B (0%) - Peak Free: 2.283GB (100%) |'C:\pagefile.sys Page File Size'=2451570688Bytes; 'C:\pagefile.sys Used'=0Bytes; 'C:\pagefile.sys Utilisation'=0%; 'C:\pagefile.sys Peak Used'=0Bytes; 'C:\pagefile.sys Peak Utilisation'=0%;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkprocess -a svchost
OK - Found 13 Instance(s) of "svchost" running (0 excluded). (List is on next line)|'Process Count'=13; 'Excluded Process Count'=0; The process(es) found are 13x svchost.exe
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkprocess -a svchost -o comm -w 4
WARNING - [Triggered by _ItemCount>4] - Found 13 Instance(s) of "svchost" running (0 excluded). (List is on next line)|'Process Count'=13;4; 'Excluded Process Count'=0; The process(es) found are C:\Windows\system32\svchost.exe -k DcomLaunch, C:\Windows\system32\svchost.exe -k rpcss, C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted, C:\Windows\system32\svchost.exe -k GPSvcGroup, C:\Windows\system32\svchost.exe -k netsvcs, C:\Windows\system32\svchost.exe -k LocalService, C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted, C:\Windows\system32\svchost.exe -k NetworkService, C:\Windows\system32\svchost.exe -k LocalServiceNoNetwork, C:\Windows\system32\svchost.exe -k NetworkServiceNetworkRestricted, C:\Windows\system32\svchost.exe -k regsvc, C:\Windows\System32\svchost.exe -k WerSvcGroup, C:\Windows\System32\svchost.exe -k tapisrv
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkprocess -s comm -a C:/Windows/system32/svchost.exe -o comm -3 serv
OK - Found 8 Instance(s) of "C:/Windows/system32/svchost.exe" running (5 excluded). (List is on next line)|'Process Count'=8; 'Excluded Process Count'=5; The process(es) found are C:\Windows\system32\svchost.exe -k DcomLaunch, C:\Windows\system32\svchost.exe -k rpcss, C:\Windows\system32\svchost.exe -k GPSvcGroup, C:\Windows\system32\svchost.exe -k netsvcs, C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted, C:\Windows\system32\svchost.exe -k regsvc, C:\Windows\System32\svchost.exe -k WerSvcGroup, C:\Windows\System32\svchost.exe -k tapisrv
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkservice -a auto -w 0 -c 1
WARNING - [Triggered by _NumBad>0] - Found 44 Services(s), 43 OK and 1 with problems (0 excluded). 'TPM Base Services' (TBS) is Stopped.|'Total Service Count'=44; 'Service Count OK State'=43; 'Service Count Problem State'=1;0;1; 'Excluded Service Count'=0;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkservice -a windows
OK - Found 16 Services(s), 7 OK and 9 with problems (0 excluded). 'Windows Audio Endpoint Builder' (AudioEndpointBuilder) is Stopped, 'Windows Audio' (Audiosrv) is Stopped, 'Windows Event Log' (EventLog) is Running, 'Windows Presentation Foundation Font Cache 3.0.0.0' (FontCache3.0.0.0) is Stopped, 'Windows CardSpace' (idsvc) is Stopped, 'Windows Firewall' (MpsSvc) is Running, 'Windows Installer' (msiserver) is Stopped, 'Windows Modules Installer' (TrustedInstaller) is Stopped, 'Windows Time' (W32Time) is Running, 'Windows Color System' (WcsPlugInService) is Stopped, 'Windows Event Collector' (Wecsvc) is Stopped, 'Windows Error Reporting Service' (WerSvc) is Running, 'Windows Management Instrumentation' (Winmgmt) is Running, 'Windows Remote Management (WS-Management)' (WinRM) is Running, 'Windows Update' (wuauserv) is Running, 'Windows Driver Foundation - User-mode Driver Framework' (wudfsvc) is Stopped.|'Total Service Count'=16; 'Service Count OK State'=7; 'Service Count Problem State'=9; 'Excluded Service Count'=0;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checksmart -H gold
UNKNOWN - The WMI query had problems. The target host (gold) might not be reachable over the network. Is it down? Is gold the correct hostname?. The host might even by up but just too busy. Wmic error text on the next line.
[librpc/rpc/dcerpc_connect.c:329:dcerpc_pipe_connect_ncacn_ip_tcp_recv()] failed NT status (c00000b5) in dcerpc_pipe_connect_ncacn_ip_tcp_recv
[librpc/rpc/dcerpc_connect.c:790:dcerpc_pipe_connect_b_recv()] failed NT status (c00000b5) in dcerpc_pipe_connect_b_recv
[wmi/wmic.c:196:main()] ERROR: Login to remote object.
NTSTATUS: NT_STATUS_IO_TIMEOUT - NT_STATUS_IO_TIMEOUT
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkservice -a windows -o audio
OK - Found 14 Services(s), 7 OK and 7 with problems (2 excluded). 'Windows Event Log' (EventLog) is Running, 'Windows Presentation Foundation Font Cache 3.0.0.0' (FontCache3.0.0.0) is Stopped, 'Windows CardSpace' (idsvc) is Stopped, 'Windows Firewall' (MpsSvc) is Running, 'Windows Installer' (msiserver) is Stopped, 'Windows Modules Installer' (TrustedInstaller) is Stopped, 'Windows Time' (W32Time) is Running, 'Windows Color System' (WcsPlugInService) is Stopped, 'Windows Event Collector' (Wecsvc) is Stopped, 'Windows Error Reporting Service' (WerSvc) is Running, 'Windows Management Instrumentation' (Winmgmt) is Running, 'Windows Remote Management (WS-Management)' (WinRM) is Running, 'Windows Update' (wuauserv) is Running, 'Windows Driver Foundation - User-mode Driver Framework' (wudfsvc) is Stopped.|'Total Service Count'=14; 'Service Count OK State'=7; 'Service Count Problem State'=7; 'Excluded Service Count'=2;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkuptime -w 10min: -c 20min: -w 1min
WARNING - [Triggered by _UptimeSec>1min] - System Uptime is 03:33:02 (213min).|'Uptime Minutes'=213min;1;20;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkdhcp -s stats -w ActiveQueueLength=2
UNKNOWN - The WMI query had problems. The target host (192.168.220.238) might not have the required WMI classes installed. This can happen, for example, if you are trying to checkiis but IIS is not installed. It can also happen if your version of Windows does not support this check (this might be because the WMI fields are named differently in different Windows versions). Sometimes, some systems 'lose' WMI Classes and you might need to rebuild your WMI repository. Sometimes a reboot can fix it. Other causes include mistyping the WMI namesspace/class/fieldnames. There may be other causes as well. You can use wmic from the command line to troubleshoot. Wmic error text on the next line.
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkdns -s arecords
UNKNOWN - The WMI query had problems. The target host (192.168.220.238) might not have the required WMI namespace. This can happen if you are trying to run a check that is only supported on newer versions of Windows eg checkpower only works on Server 2008 and above - the entire namespace required for that check is missing in older versions of Windows. Other causes include mistyping the WMI namesspace. There may be other causes as well. You can use wmic from the command line to troubleshoot. Wmic error text on the next line.
[wmi/wmic.c:196:main()] ERROR: Login to remote object.
NTSTATUS: NT code 0x8004100e - NT code 0x8004100e
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkeachcpu -w 5
OK (Sample Period 532 sec) - CPU0=0.3% CPU1=0.3% CPU_Total=0.3% |'Avg Utilisation CPU0'=0.3%;5; 'Avg Utilisation CPU1'=0.3%;5; 'Avg Utilisation CPU_Total'=0.3%;5;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkexchange -s listDBInstances
UNKNOWN - The WMI query had problems. The target host (192.168.220.238) might not have the required WMI classes installed. This can happen, for example, if you are trying to checkiis but IIS is not installed. It can also happen if your version of Windows does not support this check (this might be because the WMI fields are named differently in different Windows versions). Sometimes, some systems 'lose' WMI Classes and you might need to rebuild your WMI repository. Sometimes a reboot can fix it. Other causes include mistyping the WMI namesspace/class/fieldnames. There may be other causes as well. You can use wmic from the command line to troubleshoot. Wmic error text on the next line.
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkexchange -s DBInstances -a %_total
UNKNOWN - The WMI query had problems. The target host (192.168.220.238) might not have the required WMI classes installed. This can happen, for example, if you are trying to checkiis but IIS is not installed. It can also happen if your version of Windows does not support this check (this might be because the WMI fields are named differently in different Windows versions). Sometimes, some systems 'lose' WMI Classes and you might need to rebuild your WMI repository. Sometimes a reboot can fix it. Other causes include mistyping the WMI namesspace/class/fieldnames. There may be other causes as well. You can use wmic from the command line to troubleshoot. Wmic error text on the next line.
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkexchange -s SmtpReceive -a _total
UNKNOWN - The WMI query had problems. The target host (192.168.220.238) might not have the required WMI classes installed. This can happen, for example, if you are trying to checkiis but IIS is not installed. It can also happen if your version of Windows does not support this check (this might be because the WMI fields are named differently in different Windows versions). Sometimes, some systems 'lose' WMI Classes and you might need to rebuild your WMI repository. Sometimes a reboot can fix it. Other causes include mistyping the WMI namesspace/class/fieldnames. There may be other causes as well. You can use wmic from the command line to troubleshoot. Wmic error text on the next line.
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkiis -s connections -a _total
UNKNOWN - The WMI query had problems. The target host (192.168.220.238) might not have the required WMI classes installed. This can happen, for example, if you are trying to checkiis but IIS is not installed. It can also happen if your version of Windows does not support this check (this might be because the WMI fields are named differently in different Windows versions). Sometimes, some systems 'lose' WMI Classes and you might need to rebuild your WMI repository. Sometimes a reboot can fix it. Other causes include mistyping the WMI namesspace/class/fieldnames. There may be other causes as well. You can use wmic from the command line to troubleshoot. Wmic error text on the next line.
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkiis -s requests -a TestSite -w _PostRequestsPersec=10
UNKNOWN - The WMI query had problems. The target host (192.168.220.238) might not have the required WMI classes installed. This can happen, for example, if you are trying to checkiis but IIS is not installed. It can also happen if your version of Windows does not support this check (this might be because the WMI fields are named differently in different Windows versions). Sometimes, some systems 'lose' WMI Classes and you might need to rebuild your WMI repository. Sometimes a reboot can fix it. Other causes include mistyping the WMI namesspace/class/fieldnames. There may be other causes as well. You can use wmic from the command line to troubleshoot. Wmic error text on the next line.
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkio -s logical -a c: -w CurrentDiskQueueLength=10
Overall Status - OK (Sample Period 532 sec) - Logical Drive Name="C:" (OK) - _PercentIdleTime=95%, _PercentBusyTime=5%, _PercentDiskTime=0%, _PercentDiskReadTime=0%, _PercentDiskWriteTime=0%, _DiskReadBytesPersec=708B/sec, _DiskReadsPersec=0/sec, _DiskWriteBytesPersec=2.779KB/sec, _DiskWritesPersec=0/sec, CurrentDiskQueueLength=0, _AvgDiskQueueLength=0.0, _AvgDiskReadQueueLength=0.0, _AvgDiskWriteQueueLength=0.0|'_PercentIdleTimeC:'=95; '_PercentBusyTimeC:'=5; '_PercentDiskTimeC:'=0; '_PercentDiskReadTimeC:'=0; '_PercentDiskWriteTimeC:'=0; '_DiskReadBytesPersecC:'=708; '_DiskReadsPersecC:'=0; '_DiskWriteBytesPersecC:'=2846; '_DiskWritesPersecC:'=0; 'CurrentDiskQueueLengthC:'=0;10; '_AvgDiskQueueLengthC:'=0.0; '_AvgDiskReadQueueLengthC:'=0.0; '_AvgDiskWriteQueueLengthC:'=0.0;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkio -s physical -a c:
WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkprint -s spooler -w OutofPaperErrors=0
WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkproc -s cpu -a %sql% -w 10 -w _ItemCount=2
WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkproc -s cpuabove -a %serv% -w 50 -w _ItemCount=2
OK (Sample Period 532 sec) - Total Process Count=2 (Process details on next line)\nOK - CPU for services (PID=648)=0.1%\nOK - CPU for FreeSSHDService (PID=1600)=0.0%\n|'Process Count'=2;2;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checksql -s listdb -a MSSQLSQLEXPRESS_MSSQLSQLEXPRESS
UNKNOWN - The WMI query had problems. The target host (192.168.220.238) might not have the required WMI classes installed. This can happen, for example, if you are trying to checkiis but IIS is not installed. It can also happen if your version of Windows does not support this check (this might be because the WMI fields are named differently in different Windows versions). Sometimes, some systems 'lose' WMI Classes and you might need to rebuild your WMI repository. Sometimes a reboot can fix it. Other causes include mistyping the WMI namesspace/class/fieldnames. There may be other causes as well. You can use wmic from the command line to troubleshoot. Wmic error text on the next line.
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
check_wmi_plus.pl -H HOST -u USER -p PASS -m checksql -s cache -a MSSQLSQLEXPRESS_MSSQLSQLEXPRESS
UNKNOWN - The WMI query had problems. The target host (192.168.220.238) might not have the required WMI classes installed. This can happen, for example, if you are trying to checkiis but IIS is not installed. It can also happen if your version of Windows does not support this check (this might be because the WMI fields are named differently in different Windows versions). Sometimes, some systems 'lose' WMI Classes and you might need to rebuild your WMI repository. Sometimes a reboot can fix it. Other causes include mistyping the WMI namesspace/class/fieldnames. There may be other causes as well. You can use wmic from the command line to troubleshoot. Wmic error text on the next line.
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
check_wmi_plus.pl -H HOST -u USER -p PASS -m checksql -s latches -a MSSQLSQLEXPRESS_MSSQLSQLEXPRESS
UNKNOWN - The WMI query had problems. The target host (192.168.220.238) might not have the required WMI classes installed. This can happen, for example, if you are trying to checkiis but IIS is not installed. It can also happen if your version of Windows does not support this check (this might be because the WMI fields are named differently in different Windows versions). Sometimes, some systems 'lose' WMI Classes and you might need to rebuild your WMI repository. Sometimes a reboot can fix it. Other causes include mistyping the WMI namesspace/class/fieldnames. There may be other causes as well. You can use wmic from the command line to troubleshoot. Wmic error text on the next line.
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkts -s sessions
OK - ActiveSessions=1, InactiveSessions=1, TotalSessions=2|'ActiveSessions'=1; 'InactiveSessions'=1; 'TotalSessions'=2;
check_wmi_plus.pl -H HOST -u USER -p PASS -m checkusers -s count -a "PasswordRequired!='True'" --nodatamode -w 0
WARNING - [Triggered by _ItemCount>0] - Number of Users=1 - User information shown on next line is: Name(FullName) \n Guest()|'Number of Users'=1;0;
check_wmi_plus.pl -H HOST -u USER -p PASS -m info -s os -w 2yr
OK - OS is Microsoft« Windows Server« 2008 Standard , Service Pack 2, Installation Timestamp=20120919214744.000000+120 (27.8 days old)|'OS Installation Age'=27.8days;