Ad Widget

Collapse

LLD - Calculated Item - Windows PerfMon

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • benhanson
    Junior Member
    • Feb 2012
    • 17

    #1

    LLD - Calculated Item - Windows PerfMon

    I'm trying to create a calculated item as an item prototype in a low level discovery. The source item is a PerfMon counter which is working fine. When I try to reference that item prototype, I get:
    Invalid parameter "/1/params": incorrect expression starting from "last("perf_counter["\SQLServer : Databases({#DBNAME})\Log File(s) Used Size (KB)"]","0")"
    Given the format of perfmon items in Zabbix, I'm wondering if something Leeds to be escaped or quoted in the source item. Also tried without the second parameter, same result.

    Has anyone successfully done a calculated item prototype with Perfmon counters?
    Last edited by benhanson; 26-04-2022, 02:44.
  • Answer selected by benhanson at 26-04-2022, 03:46.
    benhanson
    Junior Member
    • Feb 2012
    • 17

    I was mis-reading documentation, and looking at old samples. Didn't have the /host/ prefix, which in this case was just // because it was the discovered host. The intent of the formula is to show SQL log file whitespace:

    Code:
    last(//perf_counter["\SQLServer:Databases({#DBNAME})\Log File(s) Size (KB)"])-last(//perf_counter["\SQLServer:Databases({#DBNAME})\Log File(s) Used Size (KB)"])

    Comment

    • benhanson
      Junior Member
      • Feb 2012
      • 17

      #2
      I was mis-reading documentation, and looking at old samples. Didn't have the /host/ prefix, which in this case was just // because it was the discovered host. The intent of the formula is to show SQL log file whitespace:

      Code:
      last(//perf_counter["\SQLServer:Databases({#DBNAME})\Log File(s) Size (KB)"])-last(//perf_counter["\SQLServer:Databases({#DBNAME})\Log File(s) Used Size (KB)"])

      Comment

      Working...