mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
small updates
git-svn-id: http://www.observium.org/svn/observer/trunk@2994 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -5,6 +5,7 @@ if (!$os)
|
||||
if (stristr($sysDescr, "VRP (R) Software")) { $os = "vrp"; }
|
||||
else if (stristr($sysDescr, "VRP Software Version")) { $os = "vrp"; }
|
||||
else if (stristr($sysDescr, "Software Version VRP")) { $os = "vrp"; }
|
||||
else if (stristr($sysDescr, "Versatile Routing Platform Software Version")) { $os = "vrp"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `sensors` WHERE `device_id` = '".$device['device_id']."' AND `sensor_class` = 'temperature' AND (`sensor_type` = 'cisco-entity-sensor' OR `sensor_type` = 'entity-sensor')"),0) == "0" && ($device['os_group'] == "cisco"))
|
||||
{
|
||||
echo("Cisco ");
|
||||
echo("CISCO-ENVMON-MIB ");
|
||||
$oids = snmp_walk($device, ".1.3.6.1.4.1.9.9.13.1.3.1.2", "-Osqn", "CISCO-ENVMON-MIB");
|
||||
$oids = str_replace('.1.3.6.1.4.1.9.9.13.1.3.1.2.','',$oids);
|
||||
$oids = trim($oids);
|
||||
|
||||
@@ -5,7 +5,7 @@ if ($device['os'] == "linux")
|
||||
$oids = snmp_walk($device, "lmTempSensorsDevice", "-Osqn", "LM-SENSORS-MIB");
|
||||
if ($debug) { echo($oids."\n"); }
|
||||
$oids = trim($oids);
|
||||
if ($oids) echo("LM-SENSORS ");
|
||||
if ($oids) echo("LM-SENSORS-MIB ");
|
||||
foreach (explode("\n", $oids) as $data)
|
||||
{
|
||||
$data = trim($data);
|
||||
|
||||
Reference in New Issue
Block a user