Performance Counter Checks


Performance Counter Checks

Performance Counter checks are specifically for the Windows operating system. A detailed explanation of performance counters can be found in the following KB article:

What Is A Performance Counter

The sections below provide examples of performance counter checks.

 

Nagios Plugins

Nagios Plugins does not provide performance counter checking capabilities.

NCPA

NPCA includes a windowscounters module. In this example, using the Nagios Plugin Threshold standards, the thresholds are triggered if the available memory is less than the supplied value.

Counter: \Memory\Available MBytes
Unit: MB
Warning: 1000MB Free
Critical: 500MB Free

Command:

./check_ncpa.py -H 10.25.14.91 -t Str0ngT0k3n -M 'windowscounters/Memory/Available MBytes' -w 1000: -c 500:

Output:

OK: \Memory\Available MBytes was 7071.00 Available MBytes | '\Memory\Available MBytes'=7071.00;1000:;500:;

NSClient++ via check_nt

NSClient++ via check_nt includes a COUNTER module. In this example the thresholds are triggered if the available memory is less than the supplied value.

Counter: \Memory\Available MBytes
Unit: MB
Warning: 1000MB Free
Critical: 500MB Free

Command:

./check_nt -H 10.25.14.10 -p 12489 -s 'Str0ngP@ssw0rd' -v COUNTER -l "\\Memory\\Available MBytes","Memory Available","MB" -w 1000 -c 500

Output:

Memory Available = 3786.00 MB | 'Memory Available'=3786.000000MB;1000.000000;500.000000;

NSClient++ via check_nrpe

NSClient++ via check_nrpe includes a check_pdh module. In this example the thresholds are triggered if the available memory is less than the supplied value.

Counter: \Memory\Available MBytes
Unit: MB
Warning: 1000MB Free
Critical: 500MB Free

Command:

./check_nrpe -H 10.25.11.3 -c check_pdh -a "counter=\Memory\Available MBytes" 'warn=value<1000' 'crit=value<500' 'perf-config=*(suffix:none)'

Output:

OK: \Memory\Available MBytes = 4921|'\Memory\Available MBytes'=4921;1000;500

WMI

Check WMI Plus does not includes a performance counter module.

SNMP

It's complicated and requires a lot of work. Here is a link from Microsoft:

SNMP WMI Provider Overview.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Article ID: 779
Created On: Wed, Nov 15, 2017 at 10:14 PM
Last Updated On: Wed, Nov 15, 2017 at 11:27 PM
Authored by: tlea

Online URL: https://support.nagios.com/kb/article/performance-counter-checks-779.html