mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
small mods
git-svn-id: http://www.observium.org/svn/observer/trunk@2995 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -103,4 +103,6 @@ foreach ($entPhysical_state as $epi => $entity)
|
||||
}
|
||||
// End Delete Entity state
|
||||
|
||||
echo("\n");
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user