From 9f5ab8ec1685632a5e94457697f25e621c80352e Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Fri, 30 Sep 2011 18:25:27 +0000 Subject: [PATCH] add ntpd server buffer graph from Dennis de Houx git-svn-id: http://www.observium.org/svn/observer/trunk@2619 61d68cd4-352d-0410-923a-c4978735b2b8 --- .../application/ntpdserver_buffer.inc.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 html/includes/graphs/application/ntpdserver_buffer.inc.php diff --git a/html/includes/graphs/application/ntpdserver_buffer.inc.php b/html/includes/graphs/application/ntpdserver_buffer.inc.php new file mode 100644 index 0000000000..8e08ac3299 --- /dev/null +++ b/html/includes/graphs/application/ntpdserver_buffer.inc.php @@ -0,0 +1,32 @@ + array('descr' => 'Received'), + 'buffer_used' => array('descr' => 'Used'), + 'buffer_free' => array('descr' => 'Free') + ); + + $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'] = $config['graph_colours'][$colours][$i]; + $i++; + } + } else { + echo("file missing: $file"); + } + + include("includes/graphs/generic_multi_line.inc.php"); + +?>