Hi,
I'm trying to fetch the channel utilization by interference on a Cisco AP via SNMP V2C.
The problem is that this value depends on the current channel of the AP and there's no OID to return this value based on this condition. Instead, the OID 1.3.6.1.4.1.14179.2.2.14.1.22 of the AIRESPACE-WIRELESS MIB returns a list of the values for all channels on the interface of interest (2.4 or 5 GHz).
The image below shows what the raw data looks like.

So if the current channel is 1, then I should get a value of 11%. On the next polling time, if the current channel is 6 then I should get 2% for my item.
I have already tried:
1) Dynamic OID - Did not work because the value to search needs to be constant;
2) Javascript Preprocessing - I configured a discovery rule to add the value of each channel on its individual item and then configure another item that fetches the current channel and uses it on a preprocessing javascript, but the macro for the actual value did not expand. i.e.
SyntaxError: parse error);
3) Calculated Item - Using the individual items as explained before, I tried to think of an equation to select the value based on the current channel. Couldn't come up with such an equation. (Maybe it's not even possible, since this would yield a discontinuous function);
If there's a way to configure a dependent item based on more than one master item maybe I'll get it working...
Any ideas would be appreciated.
Zabbix Version:4.4.7
OS: CentOS 8
I'm trying to fetch the channel utilization by interference on a Cisco AP via SNMP V2C.
The problem is that this value depends on the current channel of the AP and there's no OID to return this value based on this condition. Instead, the OID 1.3.6.1.4.1.14179.2.2.14.1.22 of the AIRESPACE-WIRELESS MIB returns a list of the values for all channels on the interface of interest (2.4 or 5 GHz).
The image below shows what the raw data looks like.
So if the current channel is 1, then I should get a value of 11%. On the next polling time, if the current channel is 6 then I should get 2% for my item.
I have already tried:
1) Dynamic OID - Did not work because the value to search needs to be constant;
2) Javascript Preprocessing - I configured a discovery rule to add the value of each channel on its individual item and then configure another item that fetches the current channel and uses it on a preprocessing javascript, but the macro for the actual value did not expand. i.e.
SyntaxError: parse error);3) Calculated Item - Using the individual items as explained before, I tried to think of an equation to select the value based on the current channel. Couldn't come up with such an equation. (Maybe it's not even possible, since this would yield a discontinuous function);
If there's a way to configure a dependent item based on more than one master item maybe I'll get it working...
Any ideas would be appreciated.
Zabbix Version:4.4.7
OS: CentOS 8