mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add snmpv3 support to old snmp queries - patch by gl
git-svn-id: http://www.observium.org/svn/observer/trunk@3184 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,7 +6,7 @@ if(!empty($agent_data['app']['mysql']))
|
||||
$mysql = $agent_data['app']['mysql'];
|
||||
} else {
|
||||
#Polls MySQL statistics from script via SNMP
|
||||
$mysql_cmd = $config['snmpget'] ." -m NET-SNMP-EXTEND-MIB -O qv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'];
|
||||
$mysql_cmd = $config['snmpget'] ." -m NET-SNMP-EXTEND-MIB -O qv " . snmp_gen_auth($device) . " " . $device['hostname'].":".$device['port'];
|
||||
$mysql_cmd .= " nsExtendOutputFull.5.109.121.115.113.108";
|
||||
$mysql = shell_exec($mysql_cmd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user