<?php

$scale_min = 0;

include("includes/graphs/common.inc.php");

$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-apache-".$app['app_id'].".rrd";

$array = array('sb_reading' => array('descr' => 'Reading', 'colour' => '750F7DFF'),
               'sb_writing' => array('descr' => 'Writing', 'colour' => '00FF00FF'),
               'sb_wait' => array('descr' => 'Waiting', 'colour' => '4444FFFF'),
               'sb_start' => array('descr' => 'Starting', 'colour' => '157419FF'),
               'sb_keepalive' => array('descr' => 'Keepalive', 'colour' => 'FF0000FF'),
               'sb_dns' => array('descr' => 'DNS', 'colour' => '6DC8FEFF'),
               'sb_closing' => array('descr' => 'Closing', 'colour' => 'FFAB00FF'),
               'sb_logging' => array('descr' => 'Logging', 'colour' => 'FFFF00FF'),
               'sb_graceful' => array('descr' => 'Graceful', 'colour' => 'FF5576FF'),
               'sb_idle' => array('descr' => 'Idle', 'colour' => 'FF4105FF'),
);

$i = 0;
if (is_file($rrd_filename))
{
  foreach ($array as $ds => $vars)
  {
    $rrd_list[$i]['filename'] = $rrd_filename;
    $rrd_list[$i]['descr'] = $vars['descr'];
    $rrd_list[$i]['ds'] = $ds;
    $rrd_list[$i]['colour'] = $vars['colour'];
    $i++;
  }
} else { echo("file missing: $file");  }

$colours   = "mixed";
$nototal   = 1;
$unit_text = "Workers";

include("includes/graphs/generic_multi_simplex_seperated.inc.php");

?>
