diff --git a/includes/polling/device-powerconnect.inc.php b/includes/polling/device-powerconnect.inc.php index 0267aeb37..a6c74c4ea 100644 --- a/includes/polling/device-powerconnect.inc.php +++ b/includes/polling/device-powerconnect.inc.php @@ -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'];