initial commit; version 22.5.12042
This commit is contained in:
25
includes/polling/applications/ceph.inc.php
Normal file
25
includes/polling/applications/ceph.inc.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
if (!empty($agent_data['app']['ceph']))
|
||||
{
|
||||
$app_id = discover_app($device, 'ceph');
|
||||
|
||||
list($osdtotal, $osdup, $osdin, $ops, $wrbps, $rdbps) = explode("\n", $agent_data['app']['ceph']);
|
||||
|
||||
$data = array(
|
||||
'OSD_total' => $osdtotal,
|
||||
'OSD_in' => $osdup,
|
||||
'OSD_out' => $osdin,
|
||||
'ops' => $ops,
|
||||
'wrbps' => $wrbps,
|
||||
'rdbps' => $rdbps,
|
||||
|
||||
);
|
||||
|
||||
rrdtool_update_ng($device, 'ceph', $data, $app_id);
|
||||
|
||||
update_application($app_id, $data);
|
||||
|
||||
}
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user