mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Scrut fixes
This commit is contained in:
@ -18,4 +18,3 @@ if ($entPhysicalMfgName == 'Siklu') {
|
||||
$os = 'siklu';
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -4,10 +4,10 @@ if ($device['os'] == "siklu") {
|
||||
$oid = "rbSysTemperature.0";
|
||||
$oids = snmp_get($device, "$oid", "-OsqnU", "RADIO-BRIDGE-MIB");
|
||||
if ($debug) { echo($oids."\n"); }
|
||||
if ($oids) echo("Siklu Temperature ");
|
||||
if (!empty($oids)) echo("Siklu Temperature ");
|
||||
$divisor = 1;
|
||||
$type = "siklu";
|
||||
if ($oids) {
|
||||
if (!empty($oids)) {
|
||||
list(,$current) = explode(' ',$oids);
|
||||
$index = $oid;
|
||||
$descr = "System Temp";
|
||||
|
@ -4,10 +4,10 @@ if ($device['os'] == "siklu") {
|
||||
$oid = "rbSysVoltage.0";
|
||||
$oids = snmp_walk($device, "$oid", "-OsqnU", "RADIO-BRIDGE-MIB");
|
||||
if ($debug) { echo($oids."\n"); }
|
||||
if ($oids) echo("Siklu Voltage ");
|
||||
if (!empty($oids)) echo("Siklu Voltage ");
|
||||
$divisor = 1;
|
||||
$type = "siklu";
|
||||
if ($oids) {
|
||||
if (!empty($oids)) {
|
||||
list(,$current) = explode(' ',$oids);
|
||||
$index = $oid;
|
||||
$descr = "System voltage";
|
||||
|
@ -13,6 +13,8 @@ function poll_sensor($device, $class, $unit)
|
||||
{
|
||||
if ($device['os'] == 'siklu') {
|
||||
$mib = ":RADIO-BRIDGE-MIB";
|
||||
} else {
|
||||
$mib = '';
|
||||
}
|
||||
if ($class == "temperature")
|
||||
{
|
||||
|
Reference in New Issue
Block a user