From eff1c34d8fbda83fd7550c2eb06cf21792b151db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rosiak?= Date: Thu, 2 Apr 2015 22:17:53 +0200 Subject: [PATCH] Update fortigate.inc.php -Another correction. --- includes/polling/os/fortigate.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/polling/os/fortigate.inc.php b/includes/polling/os/fortigate.inc.php index 87e9fc87b7..e32ca4e697 100755 --- a/includes/polling/os/fortigate.inc.php +++ b/includes/polling/os/fortigate.inc.php @@ -11,7 +11,9 @@ if (isset($rewrite_fortinet_hardware[$poll_device['sysObjectID']])) $hardware = $rewrite_fortinet_hardware[$poll_device['sysObjectID']]; } -$hardware = snmp_get($device, "ENTITY-MIB::entPhysicalModelName.1", "-Ovq"); +if (empty($hardware)) { + $hardware = snmp_get($device, "ENTITY-MIB::entPhysicalModelName.1", "-Ovq"); +} $sessrrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/fortigate_sessions.rrd"; $sessions = snmp_get($device, "FORTINET-FORTIGATE-MIB::fgSysSesCount.0", "-Ovq");