1<?php 2 3require 'includes/html/graphs/common.inc.php'; 4 5$scale_min = 0; 6$nototal = 1; 7$unit_text = 'Memory'; 8$unitlen = 15; 9$bigdescrlen = 20; 10$smalldescrlen = 15; 11$colours = 'mixed'; 12 13$rrd_filename = Rrd::name($device['hostname'], ['app', 'redis', $app['app_id'], 'memory']); 14 15$array = [ 16 'active' => 'Active', 17 'allocated' => 'Allocated', 18 'resident' => 'Resident', 19 'frag_bytes' => 'Frag Bytes', 20 'rss_bytes' => 'RSS Bytes', 21]; 22 23$rrd_list = []; 24if (Rrd::checkRrdExists($rrd_filename)) { 25 $i = 0; 26 foreach ($array as $ds => $descr) { 27 $rrd_list[$i]['filename'] = $rrd_filename; 28 $rrd_list[$i]['descr'] = $descr; 29 $rrd_list[$i]['ds'] = $ds; 30 $i++; 31 } 32} else { 33 echo "file missing: $rrd_filename"; 34} 35 36require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php'; 37