Looking to get pointed in the right direction to add some graphing for Aerohive Wireless APs.
Let’s start with these:
ahRadioTxAirtime - .1.3.6.1.4.1.26928.1.1.1.2.1.3.1.22
ahRadioRxAirtime - .1.3.6.1.4.1.26928.1.1.1.2.1.3.1.23
These are both in the AH-INTERFACE-MIB
Right now in /opt/librenms/includes/definitions/discovery we have hiveos-wireless.yaml:
mib: AH-SYSTEM-MIB
modules:
mempools:
data:
-
percent_used: AH-SYSTEM-MIB::ahMemUtilization
os:
sysDescr_regex: '/^(?<hardware>.*), HiveOS (?<version>.*)$/'
hardware: AH-SYSTEM-MIB::ahDeviceMode.0
serial: AH-SYSTEM-MIB::ahSystemSerial.0
version: AH-SYSTEM-MIB::ahFirmwareVersion.0
version_regex: '/^(HiveOS )?(?<version>.*)/'
sensors:
temperature:
data:
-
oid: ahSystem
value: ahEnvirmentTemp
num_oid: '.1.3.6.1.4.1.26928.1.2.10.{{ $index }}'
index: 0
descr: 'Internal Temperature'
And in /opt/librenms/includes/definitions:
os: hiveos-wireless
text: 'Aerohive HiveOS'
type: wireless
icon: aerohive
mib_dir: aerohive
over:
- { graph: device_bits, text: Traffic }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_wireless_clients, text: 'Wifi Clients' }
discovery:
-
sysDescr_regex:
- '/^(Hive)*AP[\w]+(?:_n)?, HiveOS/'
Is this what I would want in /opt/librenms/includes/definitions/discovery/hiveos-wireless.yaml?:
mib: AH-SYSTEM-MIB:AH-INTERFACE-MIB
modules:
mempools:
data:
-
percent_used: AH-SYSTEM-MIB::ahMemUtilization
os:
sysDescr_regex: '/^(?<hardware>.*), HiveOS (?<version>.*)$/'
hardware: AH-SYSTEM-MIB::ahDeviceMode.0
serial: AH-SYSTEM-MIB::ahSystemSerial.0
version: AH-SYSTEM-MIB::ahFirmwareVersion.0
version_regex: '/^(HiveOS )?(?<version>.*)/'
sensors:
temperature:
data:
-
oid: ahSystem
value: ahEnvirmentTemp
num_oid: '.1.3.6.1.4.1.26928.1.2.10.{{ $index }}'
index: 0
descr: 'Internal Temperature'
count:
data:
-
oid: ahRadioTxAirtime
value: ahRadioTxAirtime
num_oid: .1.3.6.1.4.1.26928.1.1.1.2.1.3.1.22.{{ $index }}
descr: Radio Transmit Airtime {{ $index }}
index: ahRadioTxAirtime.{{ $index }}
-
oid: ahRadioRxAirtime
value: ahRadioRxAirtime
num_oid: .1.3.6.1.4.1.26928.1.1.1.2.1.3.1.23.{{ $index }}
descr: Radio Receive Airtime {{ $index }}
index: ahRadioRxAirtime.{{ $index }}