mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fix broken mysql application polling (#6317)
This commit is contained in:
@@ -9,9 +9,7 @@ if (!empty($agent_data['app'][$name])) {
|
||||
$mysql = $agent_data['app'][$name];
|
||||
} else {
|
||||
// Polls MySQL statistics from script via SNMP
|
||||
$mysql_cmd = $config['snmpget'].' -O qv '.snmp_gen_auth($device).' '.$device['hostname'].':'.$device['port'];
|
||||
$mysql_cmd .= '.1.3.6.1.4.1.8072.1.3.2.3.1.2.5.109.121.115.113.108';
|
||||
$mysql = shell_exec($mysql_cmd);
|
||||
$mysql = snmp_get($device, '.1.3.6.1.4.1.8072.1.3.2.3.1.2.5.109.121.115.113.108', '-Ovq');
|
||||
}
|
||||
|
||||
update_application($app, $mysql);
|
||||
|
||||
Reference in New Issue
Block a user