When using LLD via SNMP a JSON like the following is returned (modified because the log didn't show the full string).
I only want the fans to be returned, so I added a filter filtering "{#FAN} = ^fan[0-9]+-speed$". That work's as expected.
What I could not achieve by trying out myself or search on the forum etc. was changing the name from e.g. "fan1-speed" to "Fan 1".
How can I change those LLD macro values?
Thanks in advance.
Code:
[
{
"{#SNMPINDEX}":"14",
"{#FAN}":"temperature"
},
{
"{#SNMPINDEX}":"17",
"{#FAN}":"cpu-temperature"
},
{
"{#SNMPINDEX}":"20",
"{#FAN}":"fan1-speed"
},
{
"{#SNMPINDEX}":"21",
"{#FAN}":"fan2-speed"
},
{
"{#SNMPINDEX}":"22",
"{#FAN}":"fan3-speed"
},
{
"{#SNMPINDEX}":"23",
"{#FAN}":"fan4-speed"
}
]
What I could not achieve by trying out myself or search on the forum etc. was changing the name from e.g. "fan1-speed" to "Fan 1".
How can I change those LLD macro values?
Thanks in advance.
Nevertheless I do think about just using the value (fan1-speed) as the key as this will be unique, too.
Comment