improve fortigate detection

git-svn-id: http://www.observium.org/svn/observer/trunk@1661 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-08-11 00:24:17 +00:00
parent 9706257875
commit 41bde06192
+3 -4
View File
@@ -1,10 +1,9 @@
<?php
if(!$os) {
$fnSysVersion = shell_exec($config['snmpget'] . " -Ovq -".$device['snmpver']." -c ". $device['community'] ." ". $device['hostname'].":".$device['port'] ." 1.3.6.1.4.1.12356.1.3.0");
if(strstr($fnSysVersion, "Fortigate")) {
$os = "fortigate";
}
if (strstr($sysObjectId, "1.3.6.1.4.1.12356.15")) { $os = "fortigate"; }
}
?>