mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Rrdcached application monitoring
Can collect data from the agent or by connecting directly
This commit is contained in:
5
html/includes/graphs/application/rrdcached.inc.php
Normal file
5
html/includes/graphs/application/rrdcached.inc.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
$rrd = $config['rrd_dir'].'/'.$device['hostname'].'/app-rrdcached-'.$app['app_id'].'.rrd';
|
||||
if (is_file($rrd)) {
|
||||
$rrd_filename = $rrd;
|
||||
}
|
31
html/includes/graphs/application/rrdcached_events.inc.php
Normal file
31
html/includes/graphs/application/rrdcached_events.inc.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
include 'rrdcached.inc.php';
|
||||
|
||||
$nototal = 1;
|
||||
$colours = 'mixed';
|
||||
|
||||
$rrd_list = array(
|
||||
array (
|
||||
'ds' => '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';
|
20
html/includes/graphs/application/rrdcached_journal.inc.php
Normal file
20
html/includes/graphs/application/rrdcached_journal.inc.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
include 'rrdcached.inc.php';
|
||||
|
||||
$colours = 'pinks';
|
||||
|
||||
$rrd_list = array(
|
||||
array(
|
||||
'ds' => 'journal_rotate',
|
||||
'filename' => $rrd_filename,
|
||||
'descr' => 'Rotated',
|
||||
),
|
||||
array(
|
||||
'ds' => 'journal_bytes',
|
||||
'filename' => $rrd_filename,
|
||||
'descr' => 'Bytes Written',
|
||||
)
|
||||
);
|
||||
|
||||
require 'includes/graphs/generic_multi.inc.php';
|
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
require 'rrdcached.inc.php';
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$ds = 'queue_length';
|
||||
|
||||
$colour_area = 'F37900';
|
||||
$colour_line = 'FFA700';
|
||||
$colour_area_max = 'F78800';
|
||||
|
||||
$unit_text = 'Count';
|
||||
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
20
html/includes/graphs/application/rrdcached_tree.inc.php
Normal file
20
html/includes/graphs/application/rrdcached_tree.inc.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
include 'rrdcached.inc.php';
|
||||
|
||||
$colours = 'blues';
|
||||
|
||||
$rrd_list = array(
|
||||
array(
|
||||
'ds' => 'tree_depth',
|
||||
'filename' => $rrd_filename,
|
||||
'descr' => 'Depth',
|
||||
),
|
||||
array(
|
||||
'ds' => 'tree_nodes_number',
|
||||
'filename' => $rrd_filename,
|
||||
'descr' => 'Nodes',
|
||||
)
|
||||
);
|
||||
|
||||
require 'includes/graphs/generic_multi.inc.php';
|
Reference in New Issue
Block a user