mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
add sanos detection (it is just nxos, so we treat it as if it's IOS for discovery purposes)
git-svn-id: http://www.observium.org/svn/observer/trunk@1693 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -335,7 +335,7 @@ function formatUptime($diff, $format="long")
|
||||
function isSNMPable($hostname, $community, $snmpver, $port)
|
||||
{
|
||||
global $config;
|
||||
$pos = shell_exec($config['snmpget'] ." -m SNMPv2-MIB -$snmpver -c $community -t 1 $hostname:$port sysDescr.0");
|
||||
$pos = shell_exec($config['snmpget'] ." -m SNMPv2-MIB -$snmpver -c $community -t 1 $hostname:$port sysObjectID.0");
|
||||
if ($pos == '') {
|
||||
return false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user