Home » Categories » General Topics » Check Library

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/

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Disk Space Checks
Viewed 29584 times since Thu, Nov 9, 2017
Operating System Checks
Viewed 4590 times since Tue, Nov 14, 2017
Service Checks
Viewed 10066 times since Tue, Nov 14, 2017
Scheduled Task Checks
Viewed 6283 times since Tue, Nov 28, 2017
Uptime Checks
Viewed 8162 times since Sun, Nov 26, 2017
Load Checks
Viewed 18855 times since Thu, Nov 9, 2017
Memory Checks
Viewed 15310 times since Mon, Nov 13, 2017
Log Checks
Viewed 6440 times since Tue, Nov 28, 2017
Agent Checks
Viewed 3015 times since Tue, Nov 14, 2017
Printer Checks
Viewed 2183 times since Tue, Nov 28, 2017