CA SystemEDGE Monitoring Windows Performance Counters

Document ID : KB000029809
Last Modified Date : 14/02/2018
Show Technical Document Details

SystemEDGE has the ability to monitor almost any Windows Performance Counters as long as they have a supported counter type.

VAIM has the ability to configure systemEDGE to do this monitoring with a few Caveats as discussed below.

 

Indepth Performance counter details are in the SystemEDGE users guide Chapter 16.

Supported Performance Data Types

PERF_COUNTER_COUNTER

Counter or integer

PERF_COUNTER_RAWCOUNT

Counter, integer, or gauge

PERF_COUNTER_RAWCOUNT_HEX

Counter, integer, or gauge

PERF_SAMPLE_COUNTER

Counter, integer, or gauge

 

The following list matches the 8-byte performance data types that SystemEDGE supports with the preferred SNMP types. Because SNMPv1 supports only 4-byte values, agent returns only the least significant 4 bytes of data.

PERF_COUNTER_TIMER

Counter, integer, or gauge

Note: Returns data as percentage multiplied by 100.

PERF_COUNTER_BULK_COUNT

Counter, integer, or gauge

PERF_COUNTER_LARGE_RAWCOUNT

Counter, integer, or gauge

PERF_COUNTER_LARGE_RAWCOUNT_HEX

Counter, integer, or gauge

PERF_COUNTER_TIMER_INV

Counter, integer, or gauge

Note: Returns data as percentage multiplied by 100.

PERF_AVERAGE_BULK

Counter, integer, or gauge

PERF_100NSEC_TIMER

Counter or integer

Note: Returns data as percentage multiplied by 100.

PERF_100NSEC_TIMER_INV

Counter or integer

Note: Returns data as percentage multiplied by 100.

PERF_COUNTER_MULTI_TIMER

Counter or integer

Note: Returns data as percentage multiplied by 100.

PERF_COUNTER_MULTI_TIMER_INV

Counter or integer

Note: Returns data as percentage multiplied by 100.

PERF_100NSEC_MULTI_TIMER

Counter or integer

Note: Returns data as percentage multiplied by 100.

PERF_100NSEC_MULTI_TIMER_INV

Counter, integer, or gauge

Note: Returns data as percentage multiplied by 100.

PERF_ELAPSED_TIME

Integer

PERF_SAMPLE_FRACTION

Integer or gauge

Note: Returns data as percentage multiplied by 100.

PERF_RAW_FRACTION

Integer or gauge

Note: Returns data as percentage multiplied by 100.

PERF_LARGE_RAW_FRACTION

Integer or gauge

Note: Returns data as percentage multiplied by 100.

 

***** Unsupported Performance Data Types * * * * * * *

Several counters with multiple samples and internal data are difficult to present in a single value and require significant post-processing. For that reason, CA SystemEDGE does not support the following counter types:

? PERF_COUNTER_QUEUELEN_TYPE

? PERF_COUNTER_TEXT

? PERF_COUNTER_NODATA

? PERF_SAMPLE_BASE

? PERF_AVERAGE_TIMER

? PERF_AVERAGE_BASE

? PERF_COUNTER_MULTI_BASE

? PERF_RAW_BASE

? PERF_COUNTER_HISTOGRAM_TYPE

 

SystemEDGE Caveats with ntregperf objects.

SYSTEMEDGE ONLY SUPPORTS the types listed! It will fail to add the counter if it is not a supported type.

SAMPLE Watcher in sysedge.cf

ntregperf 01 counter performance PhysicalDisk '% Disk Read Time' '0 C:'

If you are using an invalid data type the c:\users\public\CA\systemedge\port1691\sysedge.log will contain a line like,

0000506 2015-02-06 14:24:04.25 [W]-11918- se/nt_regext.c[711]        : get_registry_extension(): Performance counter type 0x20570500 (Unknown) not supported

You can then use this type 0x20570500 code to lookup the type.

And the Microsoft type link to determine that this is not a counter that falls in the supported sysedge types listed above.

https://msdn.microsoft.com/en-us/library/cc238313.aspx

In Virtual Assurance you can also define a windows performance counter via policy.

 

You can do this as in the screenshot below.

proc.JPG

 

 

Caveats and misconceptions of VAIM.

VAIM shows Performance counters but these are canned. For example the Above c: is not valid on a 64 bit system and shows in VAIM but is valid for a 32bit system due to differences in the counter type. As such it also does not pull back Available performance counters so it is possible to have additional counters on a system that you cannot specify  in vaim. And it is also possible as in the c:\ performance counter as mentioned that you could specify a counter in vaim and it still be an unsupported counter type.

Work Around for custom counter types and vaim counters.

It is possible to use a MIB-Extension as documented in the technical documentation index MIB-Extension document and in the sysedge guide Chapter 15.

Your custom script can call the windows o/s type perf command and this can retrieve the value for the Performance counter in question, as well the output can be parsed via tokens in the script to echo the value you want stored in the systemEDGE mibextension then a monitor entry can be created to watch this value for a breach of your required performance counter information.

 

Sample TYPEPERF.exe usage

 

typeperf \\HOSTNAME\PhysicalDisk(0 C:)\*

 

Sample Extension script;

This is for basic understanding of 1 way to accomplish storing a performance counter value (Supported or not supported types) via a mib extension.

 

c:\windows\system32\typeperf "\\hostname\PhysicalDisk(0 C:)\Disk Reads/sec" -sc 1 > c:\diskr.txt

 

set current=%DATE:~4,10%

 

findstr /NC:%current% "c:\diskr.txt" > c:\diskr2.txt

 

for /f "tokens=1,2,3 usebackq delims=," %%i in (c:\diskr2.txt) do echo %%j

 

This should echo the value for disk reads a sec. And when calling this batch file it should be able to store the c drive disk reads a sec in SystemEDGE as an extension value. Though the performance counter type is not supported via a traditional extension.

For any problems or additional help please contact CA Support for further details.