Hi,
Sorry I haven’t done this before and want to make sure I’m formatting it correctly.
Here is the existing file: /opt/librenms/includes/definitions/discovery/ceraos.yaml
mib: MWRM-UNIT-MIB:MWRM-RADIO-MIB
modules:
sensors:
state:
data:
-
oid: genEquipUnitInfoNtpStatusLockState
num_oid: .1.3.6.1.4.1.2281.10.1.1.11.6.6.1.4.{{ $index }}
descr: NTP Client Lock Status
state_name: genEquipUnitInfoNtpStatusLockState
states:
- { value: 0, generic : 0, graph: 0, descr: None }
- { value: 1, generic : 0, graph: 0, descr: Local }
- { value: 2, generic : 0, graph: 0, descr: Locked }
-
oid: genEquipRfuStatusTxMute
num_oid: .1.3.6.1.4.1.2281.10.5.1.1.25.{{ $index }}
descr: TX Mute Status
state_name: genEquipRfuStatusTxMute
states:
- { value: 0, generic: 0, graph: 0, descr: Disabled }
- { value: 1, generic: 0, graph: 0, descr: Enabled }
-
oid: genEquipRadioCfgRadioOperationalStatus
num_oid: .1.3.6.1.4.1.2281.10.7.2.1.9.{{ $index }}
descr: Radio Operational Status
state_name: genEquipRadioCfgRadioOperationalStatus
states:
- { value: 0, generic : 0, graph: 0, descr: Inactive }
- { value: 1, generic : 0, graph: 0, descr: Active }
-
oid: genEquipRemoteRadioRemoteCommunication
num_oid: .1.3.6.1.4.1.2281.10.7.3.1.1.2.{{ $index }}
descr: Remote Radio Operational Status
state_name: genEquipRemoteRadioRemoteCommunication
states:
- { value: 0, generic: 0, graph: 0, descr: Inactive }
- { value: 1, generic: 0, graph: 0, descr: Active }
temperature:
data:
-
oid: genEquipUnitIduTemperature
num_oid: .1.3.6.1.4.1.2281.10.1.1.9.{{ $index }}
descr: IDU Temperature
-
oid: genEquipRfuStatusPATemp
num_oid: .1.3.6.1.4.1.2281.10.5.1.1.24.{{ $index }}
descr: Power Amplifier Temperature
And I want to add these from the MIB Data
“1.3.6.1.4.1.2281.10.7.4.1.1.6”,“genEquipRadioMRMCCurrTxQAM”,“Column”,“INTEGER”,“read-only”,“The current TX QAM level”
“1.3.6.1.4.1.2281.10.7.4.1.1.10”,“genEquipRadioMRMCCurrRxQAM”,“Column”,“INTEGER”,“read-only”,“The current RX QAM level”
Will appending this to the yaml suffice?
oid: genEquipRadioMRMCCurrTxQAM
num_oid: 1.3.6.1.4.1.2281.10.7.4.1.1.6.{{ $index }}
descr: The current TX QAM level
state_name: genEquipRadioMRMCCurrTxQAM
oid: genEquipRadioMRMCCurrRxQAM
num_oid: 1.3.6.1.4.1.2281.10.7.4.1.1.10{{ $index }}
descr: The current RX QAM level
state_name: genEquipRadioMRMCCurrRxQAM
EDIT
Ok I tried that and it didn’t work, running discovery.php against a CeraOS device and also cleared the os_defs.cache.
I must be doing something wrong.
EDIT 2
Oh, I may have done the wrong file?
/opt/librenms/includes/definitions/ceraos.yaml
/opt/librenms/includes/definitions/discovery/ceraos.yaml
I added the OIDs to the definitions/ceraos.yaml file, ran the discovery and it removed everything.
|
2019-07-05 12:25:07 |
|
Wireless Sensor Deleted: rate ceraos-tx 268451969 Radio: Slot 2, port 1 TX Bitrate |
|
2019-07-05 12:25:07 |
|
Wireless Sensor Deleted: rate ceraos-rx 268451969 Radio: Slot 2, port 1 RX Bitrate |
|
2019-07-05 12:25:07 |
|
Wireless Sensor Deleted: mse ceraos 268451969 Radio: Slot 2, port 1 |
|
2019-07-05 12:25:07 |
|
Wireless Sensor Deleted: xpi ceraos 268451969 Radio: Slot 2, port 1 |
|
2019-07-05 12:25:07 |
|
Wireless Sensor Deleted: power ceraos-tx 268451969 Radio: Slot 2, port 1 TX Level |
|
2019-07-05 12:25:07 |
|
Wireless Sensor Deleted: power ceraos-rx 268451969 Radio: Slot 2, port 1 RX Level |
|
2019-07-05 12:25:07 |
|
Wireless Sensor Deleted: errors ceraos 268451969 Radio: Slot 2, port 1 Defected Blocks |
|
2019-07-05 12:25:07 |
|
Wireless Sensor Deleted: frequency Ceraos-tx-radio 1 1 Tx Frequency Radio 1 |
|
2019-07-05 12:25:07 |
|
Wireless Sensor Deleted: frequency Ceraos-rx-radio 1 1 Rx Frequency Radio 1 |
|
2019-07-05 12:25:01 |
|
Sensor Deleted: state genEquipUnitInfoNtpStatusLockState 1 NTP Client Lock Status |
I tried the snmpget method too but that’s not working, what am I doing wrong?