Commit version 24.12.13800
This commit is contained in:
@ -5,26 +5,25 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$ksm = $agent_data['ksm'];
|
||||
unset($agent_data['ksm']);
|
||||
|
||||
foreach (explode("\n",$ksm) as $line)
|
||||
{
|
||||
list($field,$contents) = explode("=",$line,2);
|
||||
$agent_data['ksm'][$field] = trim($contents);
|
||||
foreach (explode("\n", $ksm) as $line) {
|
||||
[$field, $contents] = explode("=", $line, 2);
|
||||
$agent_data['ksm'][$field] = trim($contents);
|
||||
}
|
||||
|
||||
rrdtool_update_ng($device, 'ksm-pages', array(
|
||||
rrdtool_update_ng($device, 'ksm-pages', [
|
||||
'pagesShared' => $agent_data['ksm']['pages_shared'],
|
||||
'pagesSharing' => $agent_data['ksm']['pages_sharing'],
|
||||
'pagesUnshared' => $agent_data['ksm']['pages_unshared'],
|
||||
));
|
||||
]);
|
||||
|
||||
$graphs['ksm_pages'] = TRUE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user