fix: Fix broken mysql application polling (#6317)

This commit is contained in:
Neil Lathwood
2017-04-01 22:22:04 +01:00
committed by GitHub
parent 4b9f3f37d7
commit a0abcbb649
+1 -3
View File
@@ -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);