small updates

git-svn-id: http://www.observium.org/svn/observer/trunk@2994 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-04-08 13:28:44 +00:00
parent 29cdd434f0
commit 339dc72beb
3 changed files with 3 additions and 2 deletions

View File

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

View File

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

View File

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