2010-07-25 18:26:31 +00:00
|
|
|
<?php
|
|
|
|
|
2011-06-01 09:45:47 +00:00
|
|
|
$scale_min = 0;
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
require 'includes/graphs/common.inc.php';
|
2010-07-25 18:26:31 +00:00
|
|
|
|
2016-07-07 01:33:43 -05:00
|
|
|
$apache_rrd = rrd_name($device['hostname'], array('app', 'apache', $app['app_id']));
|
2010-07-25 18:26:31 +00:00
|
|
|
|
2016-07-08 15:09:11 -05:00
|
|
|
if (rrdtool_check_rrd_exists($apache_rrd)) {
|
2015-07-13 20:10:26 +02:00
|
|
|
$rrd_filename = $apache_rrd;
|
2010-07-25 18:26:31 +00:00
|
|
|
}
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$ds = 'cpu';
|
2010-07-25 18:26:31 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$colour_area = 'F0E68C';
|
|
|
|
$colour_line = 'FF4500';
|
2010-07-25 18:26:31 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$colour_area_max = 'FFEE99';
|
2010-07-25 18:26:31 +00:00
|
|
|
|
|
|
|
$graph_max = 1;
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$unit_text = '% Used';
|
2010-07-25 18:26:31 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
require 'includes/graphs/generic_simplex.inc.php';
|