mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
This commit is contained in:
committed by
Neil Lathwood
parent
3c0fcdd46b
commit
9284bc60ff
@@ -5,8 +5,7 @@ $name = 'mysql';
|
||||
$app_id = $app['app_id'];
|
||||
if (!empty($agent_data['app'][$name])) {
|
||||
$mysql = $agent_data['app'][$name];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// Polls MySQL statistics from script via SNMP
|
||||
$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';
|
||||
@@ -228,4 +227,3 @@ foreach ($mapping_status as $desc => $id) {
|
||||
$status = true;
|
||||
$tags = compact('name', 'app_id', 'status', 'rrd_name', 'rrd_def');
|
||||
data_update($device, 'app', $tags, $fields);
|
||||
|
||||
|
Reference in New Issue
Block a user