mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
gamatronic ups fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@1360 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -281,37 +281,35 @@ if ($device['os'] == "netmanplus")
|
||||
}
|
||||
}
|
||||
|
||||
if ($device['os'] == "gamatronicups")
|
||||
{
|
||||
for($i = 1; $i <= 3 ;$i++)
|
||||
{
|
||||
$volt_oid = "GAMATRONIC-MIB::gamatronicLTD.5.4.1.1.2.$i";
|
||||
$descr = "Input Phase $i";
|
||||
$volt = snmp_get($device, $volt_oid, "-Oqv");
|
||||
$type = "gamatronicups";
|
||||
$precision = 1;
|
||||
$index = $i;
|
||||
$lowlimit = 0;
|
||||
$limit = NULL;
|
||||
|
||||
if ($device['os'] == "gamatronicups") {
|
||||
echo discover_volt($valid_volt,$device, $volt_oid, $index, $type, $descr, $precision, $lowlimit, $limit, $volt);
|
||||
}
|
||||
|
||||
for($i = 1; $i <= 3 ;$i++) {
|
||||
$volt_oid = "GAMATRONIC-MIB::gamatronicLTD.5.4.1.1.2.$i";
|
||||
$descr = "Input Phase $i";
|
||||
$volt = snmp_get($device, $volt_oid, "-Oqv");
|
||||
$type = "gamatronicups";
|
||||
$precision = 1;
|
||||
$index = $i;
|
||||
$lowlimit = 0;
|
||||
$warnlimit = NULL;
|
||||
$limit = NULL;
|
||||
for($i = 1; $i <= 3 ;$i++)
|
||||
{
|
||||
$volt_oid = "GAMATRONIC-MIB::gamatronicLTD.5.5.1.1.2.$i";
|
||||
$descr = "Output Phase $i";
|
||||
$volt = snmp_get($device, $volt_oid, "-Oqv");
|
||||
$type = "gamatronicups";
|
||||
$precision = 1;
|
||||
$index = 100+$i;
|
||||
$lowlimit = 0;
|
||||
$limit = NULL;
|
||||
|
||||
echo discover_volt($valid_volt,$device, $volt_oid, $index, $type, $descr, $precision, $lowlimit, $warnlimit, $limit, $volt);
|
||||
|
||||
}
|
||||
|
||||
for($i = 1; $i <= 3 ;$i++) {
|
||||
$volt_oid = "GAMATRONIC-MIB::gamatronicLTD.5.5.1.1.2.$i";
|
||||
$descr = "Output Phase $i";
|
||||
$volt = snmp_get($device, $volt_oid, "-Oqv");
|
||||
$type = "gamatronicups";
|
||||
$precision = 1;
|
||||
$index = 100+$i;
|
||||
$lowlimit = 0;
|
||||
$warnlimit = NULL;
|
||||
$limit = NULL;
|
||||
|
||||
echo discover_volt($valid_volt,$device, $volt_oid, $index, $type, $descr, $precision, $lowlimit, $warnlimit, $limit, $volt);
|
||||
}
|
||||
echo discover_volt($valid_volt,$device, $volt_oid, $index, $type, $descr, $precision, $lowlimit, $limit, $volt);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -103,6 +103,8 @@ $config['os']['powerconnect']['type'] = "network";
|
||||
|
||||
$config['os']['powervault']['text'] = "Dell PowerVault";
|
||||
|
||||
$config['os']['gamatronicups']['text'] = "Gamatronic UPS Stack";
|
||||
|
||||
$config['os']['airport']['type'] = "network";
|
||||
$config['os']['airport']['text'] = "Apple AirPort";
|
||||
|
||||
|
Reference in New Issue
Block a user