mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
new agent-based applications
git-svn-id: http://www.observium.org/svn/observer/trunk@3059 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
21
html/includes/graphs/application/drbd_disk_bits.inc.php
Executable file
21
html/includes/graphs/application/drbd_disk_bits.inc.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$drbd_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-drbd-".$app['app_instance'].".rrd";
|
||||
|
||||
if (is_file($drbd_rrd))
|
||||
{
|
||||
$rrd_filename = $drbd_rrd;
|
||||
}
|
||||
|
||||
$ds_in = "dr";
|
||||
$ds_out = "dw";
|
||||
|
||||
$multiplier = "8";
|
||||
|
||||
include("includes/graphs/generic_bits.inc.php");
|
||||
|
||||
?>
|
21
html/includes/graphs/application/drbd_network_bits.inc.php
Executable file
21
html/includes/graphs/application/drbd_network_bits.inc.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$drbd_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-drbd-".$app['app_instance'].".rrd";
|
||||
|
||||
if (is_file($drbd_rrd))
|
||||
{
|
||||
$rrd_filename = $drbd_rrd;
|
||||
}
|
||||
|
||||
$ds_in = "nr";
|
||||
$ds_out = "ns";
|
||||
|
||||
$multiplier = "8";
|
||||
|
||||
include("includes/graphs/generic_bits.inc.php");
|
||||
|
||||
?>
|
37
html/includes/graphs/application/drbd_queue.inc.php
Normal file
37
html/includes/graphs/application/drbd_queue.inc.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-drbd-".$app['app_instance'].".rrd";
|
||||
|
||||
$array = array(
|
||||
'lo' => 'Local I/O',
|
||||
'pe' => 'Pending',
|
||||
'ua' => 'UnAcked',
|
||||
'ap' => 'App Pending',
|
||||
);
|
||||
|
||||
$i = 0;
|
||||
if (is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $vars)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($vars))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $vars['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $vars;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $file"); }
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "";
|
||||
|
||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||
|
||||
?>
|
28
html/includes/graphs/application/drbd_unsynced.inc.php
Executable file
28
html/includes/graphs/application/drbd_unsynced.inc.php
Executable file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$drbd_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-drbd-".$app['app_instance'].".rrd";
|
||||
|
||||
if (is_file($drbd_rrd))
|
||||
{
|
||||
$rrd_filename = $drbd_rrd;
|
||||
}
|
||||
|
||||
$ds = "oos";
|
||||
|
||||
$colour_area = "CDEB8B";
|
||||
$colour_line = "006600";
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
|
||||
$graph_max = 1;
|
||||
$multiplier = 8;
|
||||
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user