Ad Widget

Collapse

Having difficulty to aggregate data suign UserParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dougc
    Junior Member
    • Jul 2018
    • 4

    #1

    Having difficulty to aggregate data suign UserParameter

    Hi,

    I have managed to use UserParameter in zabbix_agentd.conf file to create several items and start to collecting data and generating graph. But when I tried to create a new item to aggregate two items I got the syntax error message.

    This is the key I entered for new item I try to create on Zabbix Server - last("sjdc-lws-a:RTDA.SJDC.Cores")+last("sjdc-lws-b:RTDA.CHN.Cores")

    sjdc-lws-a and sjdc-lws-b are the zabbix agents that I have the UserParameter commands added
    and RTDA.SJDC.Cores and RTDA.CHN.Cores are the keys of the items I have defined.

    When I clicked Add, I got the following error message

    Invalid key "last("sjdc-lws-a:RTDA.SJDC.Cores")+last("sjdc-lws-b:RTDA.CHN.Cores")" for item "RTDA.Total.Cores" on "Zabbix server": incorrect syntax near "("sjdc-lws-a:RTDA.SJDC.Cores")+last("sjdc-lws ...". [items.php:564 → CFrontendApiWrapper->create() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CItem->create() → CItemGeneral->checkInput() → CApiService::exception() in include/classes/api/services/CItemGeneral.php:391]

    RTDA.Total.Cores is the new item that I try to create.

    Can anyone help me to find out why those keys are considered invalid?

    The defined items (with these keys) do work and collecting data

    Thank you in advance for your help.

    Douglas
Working...