1<?php
2
3require 'includes/html/graphs/common.inc.php';
4$i = 0;
5$scale_min = 0;
6$nototal = 1;
7$unit_text = 'Per Sec.';
8$rrd_filename = Rrd::name($device['hostname'], ['app', 'freeradius-proxy_access', $app['app_id']]);
9$fr_proxy_access_array = [
10    'requests' => 'Requests',
11    'accepts' => 'Accepts',
12    'rejects'=> 'Rejects',
13    'challenges' => 'Challenges',
14];
15$colours = 'mixed';
16$rrd_list = [];
17if (Rrd::checkRrdExists($rrd_filename)) {
18    foreach ($fr_proxy_access_array as $ds => $descr) {
19        $rrd_list[$i]['filename'] = $rrd_filename;
20        $rrd_list[$i]['descr'] = $descr;
21        $rrd_list[$i]['ds'] = $ds;
22        $i++;
23    }
24} else {
25    echo "file missing: $rrd_filename";
26}
27require 'includes/html/graphs/generic_multi_line.inc.php';
28