Hi folks,
I have an interesting issue (well I think it's interesting
I have a LoRaWAN device which sends data packets in two different formats. In Zabbix I want to differentiate between them and discard one format.
As messages come in via MQTT the value gets set in the master item.
Dependent items break out the various metrics of interest.
BUT some master item values (where fPort == 0 have nothing in Object ie {}
In simplified form... I want to discard messages where fPort is 0
Otherwise other dependent items get grumpy because Object doesn't have the expected fields.
{
"fPort": 0,
"Object": {},
}
or the one I want to keep:
{
"fPort":85,
"Object":{ "value1":1234, "value2":3456}
}
Dependent objects look for value1 value2 and report "no data matches the specified path" when fPort 0 messages arrive.
At this point it looks like I have to add a custom error handler to catch this on each and every dependent field and subsequent calculated fields.
Can anyone point me in the right direction ?
TIA.
Vince.
I have an interesting issue (well I think it's interesting

I have a LoRaWAN device which sends data packets in two different formats. In Zabbix I want to differentiate between them and discard one format.
As messages come in via MQTT the value gets set in the master item.
Dependent items break out the various metrics of interest.
BUT some master item values (where fPort == 0 have nothing in Object ie {}
In simplified form... I want to discard messages where fPort is 0
Otherwise other dependent items get grumpy because Object doesn't have the expected fields.
{
"fPort": 0,
"Object": {},
}
or the one I want to keep:
{
"fPort":85,
"Object":{ "value1":1234, "value2":3456}
}
Dependent objects look for value1 value2 and report "no data matches the specified path" when fPort 0 messages arrive.
At this point it looks like I have to add a custom error handler to catch this on each and every dependent field and subsequent calculated fields.
Can anyone point me in the right direction ?
TIA.
Vince.
(like are they send over 1 by 1 or all in 1 json etc etc)
Comment