find older hardware for powerconnect - works on 5224

git-svn-id: http://www.observium.org/svn/observer/trunk@984 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-03-02 17:57:24 +00:00
parent 436530febc
commit d45cae6e3a

View File

@@ -7,6 +7,11 @@ $snmp_cmd .= " productIdentificationDisplayName.0 productIdentificationVersion.0
list($hardware, $version, $features) = explode("\n", shell_exec($snmp_cmd));
if (strstr($hardware,"No Such Object available"))
{
$hardware = $sysDescr;
}
$cpurrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/powerconnect-cpu.rrd";
$cpu_cmd = $config['snmpget'] . " -m RADLAN-rndMng -O qv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'];