diff --git a/html/includes/graphs/application/rrdcached.inc.php b/html/includes/graphs/application/rrdcached.inc.php new file mode 100644 index 0000000000..1d951d33bc --- /dev/null +++ b/html/includes/graphs/application/rrdcached.inc.php @@ -0,0 +1,5 @@ + 'updates_written', + 'filename' => $rrd_filename, + 'descr' => 'Updates Written', + ), + array ( + 'ds' => 'data_sets_written', + 'filename' => $rrd_filename, + 'descr' => 'Data Sets Written', + ), + array( + 'ds' => 'updates_received', + 'filename' => $rrd_filename, + 'descr' => 'Updates Recieved', + ), + array ( + 'ds' => 'flushes_received', + 'filename' => $rrd_filename, + 'descr' => 'Flushes Recieved', + ), +); + +require 'includes/graphs/generic_multi_line.inc.php'; diff --git a/html/includes/graphs/application/rrdcached_journal.inc.php b/html/includes/graphs/application/rrdcached_journal.inc.php new file mode 100644 index 0000000000..92e9698df8 --- /dev/null +++ b/html/includes/graphs/application/rrdcached_journal.inc.php @@ -0,0 +1,20 @@ + 'journal_rotate', + 'filename' => $rrd_filename, + 'descr' => 'Rotated', + ), + array( + 'ds' => 'journal_bytes', + 'filename' => $rrd_filename, + 'descr' => 'Bytes Written', + ) +); + +require 'includes/graphs/generic_multi.inc.php'; diff --git a/html/includes/graphs/application/rrdcached_queue_length.inc.php b/html/includes/graphs/application/rrdcached_queue_length.inc.php new file mode 100644 index 0000000000..862e6b2a99 --- /dev/null +++ b/html/includes/graphs/application/rrdcached_queue_length.inc.php @@ -0,0 +1,14 @@ + 'tree_depth', + 'filename' => $rrd_filename, + 'descr' => 'Depth', + ), + array( + 'ds' => 'tree_nodes_number', + 'filename' => $rrd_filename, + 'descr' => 'Nodes', + ) +); + +require 'includes/graphs/generic_multi.inc.php'; diff --git a/html/pages/device/apps/rrdcached.inc.php b/html/pages/device/apps/rrdcached.inc.php new file mode 100644 index 0000000000..f09011d510 --- /dev/null +++ b/html/pages/device/apps/rrdcached.inc.php @@ -0,0 +1,29 @@ + 'Queue Length', + 'rrdcached_events' => 'Events', + 'rrdcached_tree' => 'Tree', + 'rrdcached_journal' => 'Journal', +); + +foreach ($graphs as $key => $text) { + $graph_array['height'] = '100'; + $graph_array['width'] = '215'; + $graph_array['to'] = $config['time']['now']; + $graph_array['id'] = $app['app_id']; + $graph_array['type'] = 'application_'.$key; + + echo '
+
+

'.$text.'

+
+
+
'; + include 'includes/print-graphrow.inc.php'; + echo '
'; + echo '
'; + echo '
'; +} diff --git a/includes/polling/applications/rrdcached.inc.php b/includes/polling/applications/rrdcached.inc.php new file mode 100644 index 0000000000..9135379397 --- /dev/null +++ b/includes/polling/applications/rrdcached.inc.php @@ -0,0 +1,77 @@ + 'rrdcached', 'app_id' => $app['app_id']); +influx_update($device,'app',$tags,$fields); + +unset($data); +unset($rrd_filename); +unset($fields); +unset($tags); diff --git a/includes/polling/unix-agent.inc.php b/includes/polling/unix-agent.inc.php index 43a4f499a5..b3cb418dcd 100644 --- a/includes/polling/unix-agent.inc.php +++ b/includes/polling/unix-agent.inc.php @@ -52,20 +52,21 @@ if ($device['os_group'] == 'unix') { $graphs['agent'] = true; + $agentapps = array( + "apache", + "bind", + "ceph", + "mysql", + "nginx", + "powerdns", + "proxmox", + "rrdcached", + "tinydns"); + foreach (explode('<<<', $agent_raw) as $section) { list($section, $data) = explode('>>>', $section); list($sa, $sb) = explode('-', $section, 2); - $agentapps = array( - "apache", - "ceph", - "mysql", - "nginx", - "bind", - "powerdns", - "proxmox", - "tinydns"); - if (in_array($section, $agentapps)) { $agent_data['app'][$section] = trim($data); }