mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
newdevice: Added support for logmaster(ups vendors) devices (#7524)
* added logmaster icon * added LogMaster Ups Mibs * Added battery temperature * Added LogMaster Os discovery * Added PPC UPS top level mib * Added more sensors * Added test for Os * Added log image * Disable unused modules to improve polling * Changed discovery to match all second level. * Fix logo size to 32x32 * Remove duplicated mib. * Removed .mib extension * Fix mib name. * Added rfc1628 compatibility. * Removed duplicated sensors due to rfc support * Added sensor that differs from rfc 1628.
This commit is contained in:
parent
f01cf38a3a
commit
50413ff9ae
BIN
html/images/logos/logmaster.png
Normal file
BIN
html/images/logos/logmaster.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
html/images/os/logmaster.png
Normal file
BIN
html/images/os/logmaster.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
62
includes/definitions/discovery/logmaster.yaml
Normal file
62
includes/definitions/discovery/logmaster.yaml
Normal file
@ -0,0 +1,62 @@
|
||||
mib: UPS-MIB:XPPC-MIB
|
||||
modules:
|
||||
sensors:
|
||||
temperature:
|
||||
data:
|
||||
-
|
||||
oid: upsEnvTemperature
|
||||
num_oid: .1.3.6.1.4.1.935.1.1.1.9.1.1.
|
||||
index: 'upsEnvTemperature.{{ $index }}'
|
||||
descr: Environment
|
||||
humidity:
|
||||
data:
|
||||
-
|
||||
oid: upsEnvHumidity
|
||||
num_oid: .1.3.6.1.4.1.935.1.1.1.9.1.2.
|
||||
index: 'upsEnvHumidity.{{ $index }}'
|
||||
descr: Environment
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: upsSmartBatteryReplaceIndicator
|
||||
num_oid: .1.3.6.1.4.1.935.1.1.1.2.2.5.
|
||||
descr: Battery Replace Status
|
||||
index: 'upsSmartBatteryReplaceIndicator.{{ $index }}'
|
||||
state_name: upsSmartBatteryReplaceIndicator
|
||||
states:
|
||||
- { descr: noBatteryNeedsReplacing, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: batteryNeedsReplacing, graph: 0, value: 2, generic: 2 }
|
||||
-
|
||||
oid: upsBaseOutputStatus
|
||||
num_oid: .1.3.6.1.4.1.935.1.1.1.4.1.1.
|
||||
descr: Output Status
|
||||
index: 'upsBaseOutputStatus.{{ $index }}'
|
||||
state_name: upsBaseOutputStatus
|
||||
states:
|
||||
- { descr: unknown, graph: 0, value: 1, generic: 3 }
|
||||
- { descr: onLine, graph: 0, value: 2, generic: 0 }
|
||||
- { descr: onBattery, graph: 0, value: 3, generic: 1 }
|
||||
- { descr: onBoost, graph: 0, value: 4, generic: 1 }
|
||||
- { descr: sleeping, graph: 0, value: 5, generic: 1 }
|
||||
- { descr: onBypass, graph: 0, value: 6, generic: 3 }
|
||||
- { descr: rebooting, graph: 0, value: 7, generic: 3 }
|
||||
- { descr: standBy, graph: 0, value: 8, generic: 1 }
|
||||
- { descr: onBuck, graph: 0, value: 9, generic: 1 }
|
||||
-
|
||||
oid: upsEnvWater
|
||||
num_oid: .1.3.6.1.4.1.935.1.1.1.9.1.3.
|
||||
descr: Water Status
|
||||
index: 'upsEnvWater.{{ $index }}'
|
||||
state_name: upsEnvWater
|
||||
states:
|
||||
- { descr: normal, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: abnormal, graph: 0, value: 2, generic: 1 }
|
||||
-
|
||||
oid: upsEnvSmoke
|
||||
num_oid: .1.3.6.1.4.1.935.1.1.1.9.1.4.
|
||||
descr: Smoke Status
|
||||
index: 'upsEnvSmoke.{{ $index }}'
|
||||
state_name: upsEnvSmoke
|
||||
states:
|
||||
- { descr: normal, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: abnormal, graph: 0, value: 2, generic: 1 }
|
40
includes/definitions/logmaster.yaml
Normal file
40
includes/definitions/logmaster.yaml
Normal file
@ -0,0 +1,40 @@
|
||||
os: logmaster
|
||||
text: 'LogMaster'
|
||||
type: power
|
||||
rfc1628_compat: 1
|
||||
icon: logmaster
|
||||
mib_dir:
|
||||
- logmaster
|
||||
discovery:
|
||||
-
|
||||
sysObjectId: .1.3.6.1.4.1.935
|
||||
sysDescr: 'LogWeb'
|
||||
discovery_modules:
|
||||
arp-table: 0
|
||||
bgp-peers: 0
|
||||
cisco-vrf-lite: 0
|
||||
entity-physical: 0
|
||||
ports: 0
|
||||
ports-stack: 0
|
||||
mempools: 0
|
||||
discovery-protocols: 0
|
||||
storage: 0
|
||||
ucd-diskio: 0
|
||||
poller_modules:
|
||||
bgp-peers: 0
|
||||
entity-physical: 0
|
||||
hr-mib: 0
|
||||
ipSystemStats: 0
|
||||
ipmi: 0
|
||||
ntp: 0
|
||||
ospf: 0
|
||||
processors: 0
|
||||
services: 0
|
||||
netstats: 0
|
||||
ports: 0
|
||||
stp: 0
|
||||
mempools: 0
|
||||
storage: 0
|
||||
ucd-diskio: 0
|
||||
ucd-mib: 0
|
||||
wireless: 0
|
2349
mibs/XPPC-MIB
Normal file
2349
mibs/XPPC-MIB
Normal file
File diff suppressed because it is too large
Load Diff
2367
mibs/logmaster/UPSMATE-MIB
Normal file
2367
mibs/logmaster/UPSMATE-MIB
Normal file
File diff suppressed because it is too large
Load Diff
2
tests/snmpsim/logmaster.snmprec
Normal file
2
tests/snmpsim/logmaster.snmprec
Normal file
@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|LogWeb
|
||||
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.935
|
Loading…
Reference in New Issue
Block a user