mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
many polling and discovery performance improvements
git-svn-id: http://www.observium.org/svn/observer/trunk@408 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
|
||||
if($config['enable_inventory']) {
|
||||
|
||||
$ents_cmd = "snmpwalk -O qn -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['$port'] . " ";
|
||||
$ents_cmd = $config['snmpwalk'] . " -m ENTITY-MIB -O qn -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['$port'] . " ";
|
||||
$ents_cmd .= "1.3.6.1.2.1.47.1.1.1.1.2 | sed s/.1.3.6.1.2.1.47.1.1.1.1.2.//g | cut -f 1 -d\" \"";
|
||||
|
||||
$ents = trim(`$ents_cmd | grep -v o`);
|
||||
|
||||
foreach(explode("\n", $ents) as $entPhysicalIndex) {
|
||||
|
||||
$ent_data = "snmpget -Ovqs -";
|
||||
$ent_data = $config['snmpget'] . " -m ENTITY-MIB -Ovqs -";
|
||||
$ent_data .= $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'] .":".$device['port'];
|
||||
$ent_data .= " entPhysicalDescr." . $entPhysicalIndex;
|
||||
$ent_data .= " entPhysicalContainedIn." . $entPhysicalIndex;
|
||||
|
||||
Reference in New Issue
Block a user