gamatronic ups fixes

git-svn-id: http://www.observium.org/svn/observer/trunk@1360 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-07-15 21:56:18 +00:00
parent 06c48f84af
commit 39bbe0d67b
2 changed files with 28 additions and 28 deletions

View File

@@ -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);
}
}

View File

@@ -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";