device: Updated Gamatronic ups use sysObjectID for os discovery (#6940)

This commit is contained in:
Tony Murray 2017-07-03 13:43:12 -05:00 committed by Neil Lathwood
parent 701fbbc29b
commit eb1014a657
4 changed files with 6 additions and 8 deletions

View File

@ -2,4 +2,7 @@ os: gamatronicups
text: 'Gamatronic UPS Stack'
type: power
mib_dir:
- gamtronic
- gamatronic
discovery:
- sysObjectId:
- .1.3.6.1.4.1.6050.5

View File

@ -1,7 +0,0 @@
<?php
if (empty($sysDescr)) {
if (snmp_get($device, 'psUnitManufacture.0', '-Oqv', 'GAMATRONIC-MIB', 'gamtronic') == 'Gamatronic') {
$os = 'gamatronicups';
}
}

View File

@ -1 +1,3 @@
1.3.6.1.2.1.1.1.0|4|
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.6050.5
1.3.6.1.4.1.6050.1.1.2.0|4|Gamatronic