Ad Widget

Collapse

Expression key has a value with {} in a trigger.get

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alberto Tagliasacchi
    Junior Member
    • Jun 2024
    • 6

    #1

    Expression key has a value with {} in a trigger.get

    Hi all,
    I'm wondering what does the value inside {} mean in the value of the key "expression" in the json result of a trigger.get ?
    Using Zabbix 6.0

    Here an example:
    {
    "jsonrpc": "2.0",
    "result": [
    {
    "triggerid": "634369",
    "expression": "{652522}<-70",
    "description": "RF Level low {HOSTNAME} Radio Port 1",
    "url": "",
    "status": "0",

    The corresponding trigger 634369 has the following expression:
    "avg(/R12-C21/genEquipRfuStatusRxLevel.268451969,10m)<-70", so I thought is sometihng related to hostid+key.

    Searching the answer, I found some examples that state it's a functionid, but still cannot reach details on that, don't know which method can retrieve it

    Waiting for hearing from You!

    Regards

    Alberto
    Last edited by Alberto Tagliasacchi; 06-06-2024, 20:08.
  • Answer selected by Alberto Tagliasacchi at 06-06-2024, 21:01.
    Alberto Tagliasacchi
    Junior Member
    • Jun 2024
    • 6

    I found: the value inside {} is the functionid. You can see it, using the method trigger.get with params "selectFunctions": "extend":

    Example:

    Result:
    "result": [
    {
    "triggerid": "634369",
    "expression": "{652522}<-70",
    .
    .
    "functions": [
    {
    "functionid": "652522",
    "itemid": "2506528",
    "triggerid": "634369",
    "parameter": "$,10m",
    "function": "avg"​

    Comment

    • Alberto Tagliasacchi
      Junior Member
      • Jun 2024
      • 6

      #2
      I found: the value inside {} is the functionid. You can see it, using the method trigger.get with params "selectFunctions": "extend":

      Example:

      Result:
      "result": [
      {
      "triggerid": "634369",
      "expression": "{652522}<-70",
      .
      .
      "functions": [
      {
      "functionid": "652522",
      "itemid": "2506528",
      "triggerid": "634369",
      "parameter": "$,10m",
      "function": "avg"​

      Comment

      Working...