mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Minor fixes, some cleanups, and standardising on echo("x") instead of echo "x"
git-svn-id: http://www.observium.org/svn/observer/trunk@1728 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -16,7 +16,7 @@ if ($device['os'] == "powerware")
|
||||
$current = snmp_get($device, $freq_oid, "-Oqv") / $divisor;
|
||||
$type = "xups";
|
||||
$index = '3.1.0';
|
||||
echo discover_sensor($valid_sensor, 'freq', $device, $freq_oid, $index, $type, $descr, $divisor, '1', NULL, NULL, NULL, NULL, $current);
|
||||
echo(discover_sensor($valid_sensor, 'freq', $device, $freq_oid, $index, $type, $descr, $divisor, '1', NULL, NULL, NULL, NULL, $current));
|
||||
|
||||
# XUPS-MIB::xupsOutputFrequency.0 = INTEGER: 500
|
||||
$freq_oid = "1.3.6.1.4.1.534.1.4.2.0";
|
||||
@@ -25,7 +25,7 @@ if ($device['os'] == "powerware")
|
||||
$current = snmp_get($device, $freq_oid, "-Oqv") / $divisor;
|
||||
$type = "xups";
|
||||
$index = '4.2.0';
|
||||
echo discover_sensor($valid_sensor, 'freq', $device, $freq_oid, $index, $type, $descr, $divisor, '1', NULL, NULL, NULL, NULL, $current);
|
||||
echo(discover_sensor($valid_sensor, 'freq', $device, $freq_oid, $index, $type, $descr, $divisor, '1', NULL, NULL, NULL, NULL, $current));
|
||||
|
||||
# XUPS-MIB::xupsBypassFrequency.0 = INTEGER: 500
|
||||
$freq_oid = "1.3.6.1.4.1.534.1.5.1.0";
|
||||
@@ -38,7 +38,7 @@ if ($device['os'] == "powerware")
|
||||
$current /= $divisor;
|
||||
$type = "xups";
|
||||
$index = '5.1.0';
|
||||
echo discover_sensor($valid_sensor, 'freq', $device, $freq_oid, $index, $type, $descr, $divisor, '1', NULL, NULL, NULL, NULL, $current);
|
||||
echo(discover_sensor($valid_sensor, 'freq', $device, $freq_oid, $index, $type, $descr, $divisor, '1', NULL, NULL, NULL, NULL, $current));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user