small mods

git-svn-id: http://www.observium.org/svn/observer/trunk@2995 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-04-08 16:00:32 +00:00
parent 339dc72beb
commit 9db13602e5
4 changed files with 6 additions and 6 deletions

View File

@@ -37,8 +37,6 @@ if ($device['os_group'] == "cisco" || $device['os'] == "acsw")
echo("Moved RRD ");
}
#echo("|".$descr."|");
if (!strstr($descr, "No") && !strstr($usage, "No") && $descr != "")
{
discover_processor($valid['processor'], $device, $usage_oid, $index, "cpm", $descr, "1", $entry['juniSystemModuleCpuUtilPct'], $entPhysicalIndex, NULL);

View File

@@ -194,13 +194,13 @@ function addHost($host, $snmpver = 'v2c', $port = '161', $transport = 'udp')
print_error("Given hostname does not match SNMP-read hostname ($snmphost)!");
}
} else {
print_error("No reply on community $community");
print_error("No reply on community $community using $snmpver");
}
}
if (!$device_id)
{
/// Failed SNMP
print_error("Could not reach $host with given SNMP community");
print_error("Could not reach $host with given SNMP community using $snmpver");
}
} else {
/// failed Reachability

View File

@@ -103,4 +103,6 @@ foreach ($entPhysical_state as $epi => $entity)
}
// End Delete Entity state
echo("\n");
?>