mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Using GetBulk on PrimeKey is inefficient, partly because the mibs are not organised into tables. Moving to standard walks improves polling speed by around 10 percent. Also changed over graphs to something more useful.
300 lines
16 KiB
YAML
300 lines
16 KiB
YAML
mib: PRIMEKEY-APPLIANCE-MIB
|
|
modules:
|
|
os:
|
|
version: 'PRIMEKEY-APPLIANCE-MIB::pkAVersion'
|
|
serial: 'PRIMEKEY-APPLIANCE-MIB::pkAHsmSerialNumber'
|
|
# The Appliance S/N is not available via SNMP,
|
|
# but we can retrieve the S/N for the Hardware Security Module.
|
|
sensors:
|
|
count:
|
|
options:
|
|
skip_value_lt: 0
|
|
data:
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpLoad1m
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpLoad1m
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.5.108.111.97.100.50.1{{ $index }}'
|
|
descr: ' 1m CPU load'
|
|
group: 'CPU'
|
|
index: pkASfpLoad1m
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpLoad5m
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpLoad5m
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.5.108.111.97.100.51.1{{ $index }}'
|
|
descr: ' 5m CPU load'
|
|
group: 'CPU'
|
|
index: pkASfpLoad5m
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpLoad15m
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpLoad15m
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.5.108.111.97.100.52.1{{ $index }}'
|
|
descr: '15m CPU load'
|
|
group: 'CPU'
|
|
index: pkASfpLoad15m
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAClusterLocalNodeID
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAClusterLocalNodeID
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.8.99.108.117.115.116.101.114.49.1{{ $index }}'
|
|
descr: 'Node ID'
|
|
group: 'Database'
|
|
index: pkAClusterLocalNodeID
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAClusterSize
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAClusterSize
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.8.99.108.117.115.116.101.114.50.1{{ $index }}'
|
|
descr: 'Node Count'
|
|
group: 'Database'
|
|
index: pkAClusterSize
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAClusterActiveNodes
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAClusterActiveNodes
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.8.99.108.117.115.116.101.114.51.1{{ $index }}'
|
|
descr: 'Nodes Active'
|
|
group: 'Database'
|
|
index: pkAClusterActiveNodes
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpRaidTotalDevices
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpRaidTotalDevices
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.5.114.97.105.100.52.1{{ $index }}'
|
|
descr: 'RAID Devices'
|
|
group: 'RAID'
|
|
index: pkASfpRaidTotalDevices
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpRaidActiveDevices
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpRaidActiveDevices
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.5.114.97.105.100.54.1{{ $index }}'
|
|
descr: 'RAID Active'
|
|
group: 'RAID'
|
|
index: pkASfpRaidActiveDevices
|
|
fanspeed:
|
|
options:
|
|
skip_value_lt: 0
|
|
data:
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpCpuFan
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpCpuFan
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.4.102.97.110.49.1{{ $index }}'
|
|
descr: 'CPU Fan'
|
|
group: 'CPU'
|
|
index: pkASfpCpuFan
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpSysFan1
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpSysFan1
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.4.102.97.110.50.1{{ $index }}'
|
|
descr: 'System Fan 1'
|
|
group: 'System'
|
|
index: pkASfpSysFan1
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpSysFan2
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpSysFan2
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.4.102.97.110.51.1{{ $index }}'
|
|
descr: 'System Fan 2'
|
|
group: 'System'
|
|
index: pkASfpSysFan2
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpSysFan3
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpSysFan3
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.4.102.97.110.52.1{{ $index }}'
|
|
descr: 'System Fan 3'
|
|
group: 'System'
|
|
index: pkASfpSysFan3
|
|
percent:
|
|
options:
|
|
skip_value_lt: 0
|
|
data:
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAVdbUsagePercent
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAVdbUsagePercent
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.4.118.100.98.49.1{{ $index }}'
|
|
descr: 'DB Usage %'
|
|
group: 'Database'
|
|
index: pkAVdbUsagePercent
|
|
warn_limit: 80
|
|
high_limit: 100
|
|
state:
|
|
data:
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpVmStatus
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpVmStatus
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.2.118.109.1{{ $index }}'
|
|
descr: 'Health VMs'
|
|
group: 'Health of VMs'
|
|
index: pkASfpVmStatus
|
|
state_name: HealthVMs
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: 'All OK' }
|
|
- { value: 1, generic: 2, graph: 1, descr: 'Some Inactive' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAEJBCAHealth
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAEJBCAHealth
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.8.104.101.97.108.116.104.101.50.1{{ $index }}'
|
|
descr: 'Health EJBCA'
|
|
group: 'Health of VMs'
|
|
index: pkAEJBCAHealth
|
|
state_name: HealthEjbca
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: 'All OK' }
|
|
- { value: 1, generic: 3, graph: 1, descr: 'Not Running or Unhealthy' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASignServerHealth
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASignServerHealth
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.8.104.101.97.108.116.104.115.50.1{{ $index }}'
|
|
descr: 'Health SignServer'
|
|
group: 'Health of VMs'
|
|
index: pkASignServerHealth
|
|
snmp_flags: ['-OteQUS', '-Ci'] # Workaround to prevent walking off the end of the MiB
|
|
state_name: HealthSignserver
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: 'All OK' }
|
|
- { value: 1, generic: 3, graph: 1, descr: 'Not Running or Unhealthy' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpCpuFanStatus
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpCpuFanStatus
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.4.102.97.110.53.1{{ $index }}'
|
|
descr: 'Fan CPU'
|
|
group: 'Fans'
|
|
index: pkASfpCpuFanStatus
|
|
state_name: FansCpu
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: 'OK' }
|
|
- { value: 1, generic: 2, graph: 1, descr: 'Fail' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpSysFansStatus
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpSysFansStatus
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.4.102.97.110.54.1'
|
|
descr: 'Fans System'
|
|
group: 'Fans'
|
|
index: pkASfpSysFansStatus
|
|
state_name: FansSystem
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: 'All OK' }
|
|
- { value: 1, generic: 1, graph: 1, descr: 'Fail' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAVdbStatus
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAVdbStatus
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.4.118.100.98.50.1{{ $index }}'
|
|
descr: 'DB Storage'
|
|
group: 'Database'
|
|
index: pkAVdbStatus
|
|
state_name: DbStorage
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: '< 80% full' }
|
|
- { value: 1, generic: 2, graph: 1, descr: '> 80% full' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAClusterLocalGaleraState
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAClusterLocalGaleraState
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.8.99.108.117.115.116.101.114.52.1{{ $index }}'
|
|
descr: 'DB Enum'
|
|
group: 'Database'
|
|
index: pkAClusterLocalGaleraState
|
|
state_name: DbEnum
|
|
# Galera node status can be reported as a number or a comment:
|
|
# - wsrep_local_state
|
|
# - PRIMEKEY-APPLIANCE-MIB::pkAClusterLocalGaleraState
|
|
# - .1.3.6.1.4.1.22408.1.1.2.1.8.99.108.117.115.116.101.114.52.1
|
|
# - wsrep_local_state_comment
|
|
# - PRIMEKEY-APPLIANCE-MIB::pkAClusterLocalGaleraStateString
|
|
# - .1.3.6.1.4.1.22408.1.1.2.1.8.99.108.117.115.116.101.114.53.1
|
|
# This state table is based around an interpretation of how these two
|
|
# variables relate to each other. See these links for more info:
|
|
# https:#github.com/codership/wsrep-API/blob/master/wsrep_api.h#L306 and
|
|
# https://galeracluster.com/library/documentation/node-states.html#node-state-changes
|
|
states:
|
|
- { value: 0, generic: 3, graph: 0, descr: 'Undefined' } # undefined state
|
|
- { value: 1, generic: 1, graph: 1, descr: 'Joiner' } # incomplete state, requested state transfer
|
|
- { value: 2, generic: 0, graph: 2, descr: 'Donor' } # complete state, donates state transfer
|
|
- { value: 3, generic: 0, graph: 3, descr: 'Joined' } # complete state
|
|
- { value: 4, generic: 0, graph: 4, descr: 'Synced' } # complete state, synchronized with group
|
|
- { value: 5, generic: 2, graph: 5, descr: 'Error' } # this and above is provider-specific error code
|
|
- { value: 6, generic: 2, graph: 6, descr: 'Max' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpRaidStatus
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpRaidStatus
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.5.114.97.105.100.49.1{{ $index }}'
|
|
descr: 'RAID Health'
|
|
group: 'RAID'
|
|
index: pkASfpRaidStatus
|
|
state_name: RaidHealth
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: 'Clean or Active' }
|
|
- { value: 1, generic: 2, graph: 1, descr: 'Degraded' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAHsmStatusEnum
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAHsmStatusEnum
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.2.4.104.115.109.50.1{{ $index }}'
|
|
descr: 'HSM Enum'
|
|
group: 'HSM'
|
|
index: pkAHsmStatusEnum
|
|
state_name: HsmEnum
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: 'STATUS_is_OPER' }
|
|
- { value: 1, generic: 1, graph: 1, descr: 'STATUS_is_MAINT' }
|
|
- { value: 2, generic: 1, graph: 2, descr: 'STATUS_is_BOOT' }
|
|
- { value: 3, generic: 2, graph: 3, descr: 'STATUS_is_ALARM' }
|
|
- { value: 4, generic: 2, graph: 4, descr: 'STATUS_is_EXTERNALERASE' }
|
|
- { value: 5, generic: 2, graph: 5, descr: 'STATUS_is_FAIL' }
|
|
- { value: 5, generic: 3, graph: 6, descr: 'STATUS_is_OTHER' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAHsmStatusBool
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAHsmStatusBool
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.2.4.104.115.109.51.1{{ $index }}'
|
|
descr: 'HSM Healthy'
|
|
group: 'HSM'
|
|
index: pkAHsmStatusBool
|
|
state_name: HsmHealthy
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: 'OK' }
|
|
- { value: 1, generic: 2, graph: 1, descr: 'Fail' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAHsmBatteryIntStatus
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAHsmBatteryIntStatus
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.2.4.104.115.109.53.1{{ $index }}'
|
|
descr: 'Battery Int'
|
|
group: 'HSM'
|
|
index: pkAHsmBatteryIntStatus
|
|
state_name: BatteryInt
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: 'OK' }
|
|
- { value: 1, generic: 2, graph: 1, descr: 'Low or Fail' }
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAHsmBatteryExtStatus
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAHsmBatteryExtStatus
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.2.4.104.115.109.56.1{{ $index }}'
|
|
descr: 'Battery Ext'
|
|
group: 'HSM'
|
|
index: pkAHsmBatteryExtStatus
|
|
snmp_flags: ['-OteQUS', '-Ci'] # Workaround to prevent walking off the end of the MiB
|
|
state_name: BatteryExt
|
|
states:
|
|
- { value: 0, generic: 0, graph: 0, descr: 'Ok or Absent' }
|
|
- { value: 1, generic: 2, graph: 1, descr: 'Low or Fail' }
|
|
temperature:
|
|
data:
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkASfpCpuTemp
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkASfpCpuTemp
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.1.3.99.112.117.1{{ $index }}'
|
|
descr: 'CPU Temp'
|
|
group: 'CPU'
|
|
index: pkASfpCpuTemp
|
|
voltage:
|
|
options:
|
|
skip_value_lt: 0
|
|
data:
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAHsmBatteryInt
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAHsmBatteryInt
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.2.4.104.115.109.52.1{{ $index }}'
|
|
descr: 'Int Battery'
|
|
group: 'HSM'
|
|
index: pkAHsmBatteryInt
|
|
user_func: Number::cast
|
|
-
|
|
oid: PRIMEKEY-APPLIANCE-MIB::pkAHsmBatteryExt
|
|
value: PRIMEKEY-APPLIANCE-MIB::pkAHsmBatteryExt
|
|
num_oid: '.1.3.6.1.4.1.22408.1.1.2.2.4.104.115.109.55.1{{ $index }}'
|
|
descr: 'Ext Battery'
|
|
group: 'HSM'
|
|
index: pkAHsmBatteryExt
|
|
user_func: Number::cast
|