librenms/html/includes/graphs/application/apache_hits.inc.php
Adam Amstrong cdc17c5226 add application/apache graph types
git-svn-id: http://www.observium.org/svn/observer/trunk@1476 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-25 18:26:31 +00:00

30 lines
615 B
PHP
Executable File

<?php
include("includes/graphs/common.inc.php");
$query = mysql_query("SELECT * FROM `applications` AS A, `devices` AS D WHERE A.app_id = '".mres($_GET['id'])."'
AND A.device_id = D.device_id");
$app = mysql_fetch_array($query);
$apache_rrd = $config['rrd_dir'] . "/" . $app['hostname'] . "/app-apache-".$app['app_id'].".rrd";
if(is_file($apache_rrd)) {
$rrd_filename = $apache_rrd;
}
$rra = "access";
$colour_area = "AA66AA";
$colour_line = "FFDD88";
$colour_area_max = "FFEE99";
$graph_max = 1;
$unit_text = "Hits/sec";
include("includes/graphs/generic_simplex.inc.php");
?>