Until today I have not found a solution for the following problem:
I have the possibility to query an external system via SNMPTABLE or via REST/JSON for pending alarms. I have currently chosen REST. I have now created an item that filters the possible alarms with four JSONpath queries so that I only have the alarms that interest me.
Now the item data contains a JSON array with several objects (all valid alarms).
Example data (stripped):
How do I now create a trigger for each existing alarm? And as soon as the created alarm is no longer in the list, the trigger should be removed. Does anyone have an idea?
The same problem also exists if the data is queried (and previously filtered) via snmptable.
I have the possibility to query an external system via SNMPTABLE or via REST/JSON for pending alarms. I have currently chosen REST. I have now created an item that filters the possible alarms with four JSONpath queries so that I only have the alarms that interest me.
Now the item data contains a JSON array with several objects (all valid alarms).
Example data (stripped):
Code:
[
{
"ref": 17439111,
"severity": "WARNING",
"timeStarted": 1630309185460,
"timeEnded": null,
"message": "Rx 2 level control out of range",
"messageName": "WARNING_RX2_LEVEL_CONTROL_OUT_OF_RANGE",
"messageCode": 2147489225,
},
{
"ref": 17439108,
"severity": "WARNING",
"timeStarted": 1630309185381,
"timeEnded": null,
"message": "Rx 1 level control out of range",
"messageName": "WARNING_RX1_LEVEL_CONTROL_OUT_OF_RANGE",
"messageCode": 2147489224,
},
{
"ref": 17439103,
"severity": "ALARM",
"timeStarted": 1630309185306,
"timeEnded": null,
"message": "Rx 2 optical power low",
"messageName": "ALARM_RX2_OPTICAL_POWER_LOW",
"messageCode": 3221231046,
}
]
The same problem also exists if the data is queried (and previously filtered) via snmptable.

Comment