Ad Widget

Collapse

Errors and weird values using MSSQL ODBC based template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sbelkin
    Junior Member
    • Dec 2016
    • 17

    #1

    Errors and weird values using MSSQL ODBC based template

    Hi!
    On Zabbix 6.0 LTS I have an error with items:
    • Buffer cache hit ratio
    • Cache Hit Ratio
    • 'Worktables From Cache Ratio
    Error happens on preprocessing steps using parameter, for example
    Code:
    $[?(@.counter_name=='WorktablesFromCacheRatio')].cntr_value.first()

    it fails with this message:

    Preprocessing failed for: [{"object_name":"SQLServer:Access Methods","cntr_value":"828","counter_name":"AU cleanup batches/...

    1. Failed: cannot extract value from json by path "$[?(@.counter_name=='WorktablesFromCacheRatio')].cntr_value.first()": no data matches the specified path
    I've found that adding spaces in counter_name (Worktables From Cache Ratio) the errors go away and I get following the values:

    Click image for larger version  Name:	image.png Views:	1 Size:	47.4 KB ID:	485607

    If I run the query manually from "Get performance counters" I get the same values…. are those value reasonable?
    Attached Files
    Last edited by sbelkin; 13-06-2024, 17:45.
Working...