Hi all,
Looking for some guidance if it is possible to use macros defined in an LLD rule in another LLD rule.
What I am looking to do has 2 steps:
LLD rule #1: Discovery all sensors. Output is similar to that:
LLD rule #2: For each sensor discovered, list all network interfaces that are UP.
Can we do that? I am not able to make this work..
I also tried a different way where I use only 1 LLD and end up with this type of output:
But I dont think it exists a way to iterate through "INTF_LIST" on a prototype items.
Any help is appreciated
Looking for some guidance if it is possible to use macros defined in an LLD rule in another LLD rule.
What I am looking to do has 2 steps:
LLD rule #1: Discovery all sensors. Output is similar to that:
Code:
[
{
"{#SENSORNAME}": "sensor1",
"{#SENSORSN}": "E176A170500000"
},
{
"{#SENSORNAME}": "sensor2",
"{#SENSORSN}": "9790987839"
}
]
Can we do that? I am not able to make this work..
I also tried a different way where I use only 1 LLD and end up with this type of output:
Code:
[
{
"{#SENSORNAME}": "sensor1",
"{#SENSORSN}": "E176A170500000",
"{#INTF_LIST}": [
"eth0",
"eth2"
]
},
{
"{#SENSORNAME}": "sensor2",
"{#SENSORSN}": "9790987839",
"{#INTF_LIST}": [
"eth0"
]
}
]
Any help is appreciated
)
Comment