Files

33 lines
915 B
PHP
Raw Permalink Normal View History

2016-07-20 02:14:30 +03:00
<?php
$graphs = array(
2016-08-04 21:59:26 +03:00
'nfs-v3-stats_stats' => 'NFS v3 Statistics',
'nfs-v3-stats_io' => 'IO',
'nfs-v3-stats_fh' => 'File handler',
'nfs-v3-stats_rc' => 'Reply cache',
'nfs-v3-stats_ra' => 'Read ahead cache',
'nfs-v3-stats_net' => 'Network stats',
'nfs-v3-stats_rpc' => 'RPC Stats',
2016-07-20 02:14:30 +03:00
);
foreach ($graphs as $key => $text) {
$graph_type = $key;
$graph_array['height'] = '100';
$graph_array['width'] = '215';
2019-06-23 00:29:12 -05:00
$graph_array['to'] = \LibreNMS\Config::get('time.now');
2016-07-20 02:14:30 +03:00
$graph_array['id'] = $app['app_id'];
$graph_array['type'] = 'application_'.$key;
echo '<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">'.$text.'</h3>
</div>
<div class="panel-body">
<div class="row">';
2019-04-11 23:26:42 -05:00
include 'includes/html/print-graphrow.inc.php';
2016-07-20 02:14:30 +03:00
echo '</div>';
echo '</div>';
echo '</div>';
}