Ad Widget

Collapse

Calculated Item using Windows performance counter with spaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbuyukkarakas
    Member
    • Aug 2014
    • 49

    #1

    Calculated Item using Windows performance counter with spaces

    Dear all,

    I'm trying to create an calculated item from an Windows performans item counter. But I think because of whitespaces, until now I couldnt make a successfull calculation. Almost I tried every syntax option. Each time I receive en error similar to this

    The last formula I tried was this :

    avg("perf_counter[\Process(_Total)"Working\Set"]",3600)

    The item that I'm using is :
    perf_counter["\Process(_Total)\Working Set"]
    Anybody can help me to find the right syntax please ?
    Thank you.

    Mehmet


    tail -f /var/log/zabbix/zabbix_server.log|grep ACTIVEGATE
    30026:20191002:104505.619 item "ACTIVEGATE:3600" became not supported: Incorrect function expression: orking/Set"],3600)
    30025:20191002:105228.127 item "ACTIVEGATE:3600" became not supported: Incorrect function expression: orking Set"],3600)
    30025:20191002:105459.638 item "ACTIVEGATE:3600" became not supported: Incorrect function expression: orking Set"],3600)
    30025:20191002:110030.984 item "ACTIVEGATE:zabbixqueue" became not supported: Cannot evaluate function "avg(3600)": item "ACTIVEGATE:zabbix[queue]" does not exist.
    30023:20191002:110504.212 item "ACTIVEGATE:workingset" became not supported: Cannot evaluate function "avg(3600)": item "ACTIVEGATEerf_counter[\Process(_Total)\Working Set]" does not exist.
    30025:20191002:110706.699 item "ACTIVEGATE:workingset" became not supported: Cannot evaluate function "avg(3600)": item "ACTIVEGATEerf_counter[\Process(_Total)\Working set]" does not exist.
    30024:20191002:110909.223 item "ACTIVEGATE:workingset" became not supported: Incorrect function 'avg' expression. Check expression part starting from: "perf_counter[\Process(_Total)"Working/Set"
    30026:20191002:111111.694 item "ACTIVEGATE:workingset" became not supported: Incorrect function expression: orking/Set"],3600)
    30023:20191002:111713.166 item "ACTIVEGATE:workingset" became not supported: Incorrect function expression: orking\Set"],3600)
    30025:20191002:112015.764 item "ACTIVEGATE:workingset" became not supported: Incorrect function 'avg' expression. Check expression part starting from: "perf_counter[\Process(_Total)"Working\Set"
  • ZaBeast
    Member
    • Sep 2019
    • 42

    #2
    You must escape quote character with \ or remove quote from item.

    Use avg function like this:
    Code:
    avg("perf_counter[\"\Process(_Total)\Working Set\"]",3600)
    Last edited by ZaBeast; 02-10-2019, 11:39.

    Comment


    • mbuyukkarakas
      mbuyukkarakas commented
      Editing a comment
      It worked as you wrote.
      Thanks
  • mbuyukkarakas
    Member
    • Aug 2014
    • 49

    #3
    Dear all, thank you for your help. It seems ok for the first checks. I will try with more complicated syntaxes.

    Mehmet.

    Comment

    Working...