librenms/includes/osdiscovery/discover-fortigate.php
Adam Amstrong fa8ca69c0c fortigate additions
git-svn-id: http://www.observium.org/svn/observer/trunk@222 61d68cd4-352d-0410-923a-c4978735b2b8
2008-04-03 21:54:14 +00:00

16 lines
386 B
PHP
Executable File

<?php
if(!$os) {
$sysObjectId = shell_exec($config['snmpget'] . " -Ovq -v2c -c ". $community ." ". $hostname ." .1.3.6.1.2.1.1.2.0");
if(strstr($sysObjectId, "fortinet")) {
$fnSysVersion = shell_exec($config['snmpget'] . " -Ovq -v2c -c ". $community ." ". $hostname ." fnSysVersion.0");
if(strstr($fnSysVersion, "Fortigate")) {
$os = "Fortigate";
}
}
}
?>