Ad Widget

Collapse

perf_counter PID requirement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frobozz
    Junior Member
    • Nov 2013
    • 1

    #1

    perf_counter PID requirement

    New to the Zabbix community and looking for a little help.

    I am looking for some advice regarding perf_counter and a value which appears to require the PID of the application.

    I am trying to collect and graph NumberOfReclaimedConnections from the .NET Data Provider for SqlServer.

    This works like a champ:
    zabbix_get -s <server> -k perf_counter["\.NET Data Provider for SqlServer(<Application>[<PID>])\NumberOfReclaimedConnections"]

    However, the ProcessID will not be the same every time the application starts so I need a way to specify a wild card or a regex to match the PID.
    Something like:
    zabbix_get -s <server> -k perf_counter["\.NET Data Provider for SqlServer(<Application>[*])\NumberOfReclaimedConnections"]
    OR
    zabbix_get -s <server> -k perf_counter["\.NET Data Provider for SqlServer(<Application>[[0-9]{4}])\NumberOfReclaimedConnections"]

    Any help is appreciated.
    Thank you.
Working...