2012-04-20 17:37:58 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$graphs['apache'] = array(
|
|
|
|
'bits',
|
|
|
|
'hits',
|
|
|
|
'scoreboard',
|
|
|
|
'cpu',
|
|
|
|
);
|
|
|
|
|
|
|
|
$graphs['drbd'] = array(
|
|
|
|
'disk_bits',
|
|
|
|
'network_bits',
|
|
|
|
'queue',
|
|
|
|
'unsynced',
|
|
|
|
);
|
|
|
|
|
|
|
|
$graphs['mysql'] = array(
|
|
|
|
'network_traffic',
|
|
|
|
'connections',
|
|
|
|
'command_counters',
|
|
|
|
'select_types',
|
|
|
|
);
|
|
|
|
|
|
|
|
$graphs['memcached'] = array(
|
|
|
|
'bits',
|
|
|
|
'commands',
|
|
|
|
'data',
|
|
|
|
'items',
|
|
|
|
);
|
|
|
|
|
|
|
|
$graphs['nginx'] = array(
|
|
|
|
'connections',
|
|
|
|
'req',
|
|
|
|
);
|
|
|
|
|
2016-07-22 14:29:29 -05:00
|
|
|
$graphs['powerdns-recursor'] = array(
|
|
|
|
'questions',
|
|
|
|
'answers',
|
|
|
|
'cache_performance',
|
|
|
|
'outqueries'
|
|
|
|
);
|
|
|
|
|
2016-06-09 00:40:04 -05:00
|
|
|
$graphs['rrdcached'] = array(
|
|
|
|
'queue_length',
|
|
|
|
'events',
|
|
|
|
'tree',
|
|
|
|
'journal'
|
|
|
|
);
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$graphs['bind'] = array('queries');
|
|
|
|
|
|
|
|
$graphs['tinydns'] = array(
|
|
|
|
'queries',
|
|
|
|
'errors',
|
|
|
|
'dnssec',
|
|
|
|
'other',
|
|
|
|
);
|
2012-04-30 15:13:13 +00:00
|
|
|
|
2016-08-04 22:02:36 +03:00
|
|
|
$graphs['powerdns'] = array(
|
|
|
|
'latency',
|
|
|
|
'fail',
|
|
|
|
'packetcache',
|
|
|
|
'querycache',
|
|
|
|
'recursing',
|
|
|
|
'queries',
|
|
|
|
'queries_udp',
|
|
|
|
);
|
|
|
|
|
|
|
|
$graphs['nfs-v3-stats'] = array(
|
|
|
|
'stats',
|
|
|
|
'io',
|
|
|
|
'fh',
|
|
|
|
'rc',
|
|
|
|
'ra',
|
|
|
|
'net',
|
|
|
|
'rpc',
|
2016-08-06 19:55:40 +03:00
|
|
|
);
|
2016-08-04 22:02:36 +03:00
|
|
|
|
2016-08-07 06:24:34 +03:00
|
|
|
$graphs['os-updates'] = array(
|
|
|
|
'packages',
|
|
|
|
);
|
|
|
|
$graphs['dhcp-stats'] = array(
|
|
|
|
'stats',
|
|
|
|
);
|
2016-08-04 16:43:01 +02:00
|
|
|
|
2012-04-20 17:37:58 +00:00
|
|
|
print_optionbar_start();
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
echo "<span style='font-weight: bold;'>Apps</span> » ";
|
2012-04-20 17:37:58 +00:00
|
|
|
|
|
|
|
unset($sep);
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$link_array = array(
|
|
|
|
'page' => 'device',
|
|
|
|
'device' => $device['device_id'],
|
|
|
|
'tab' => 'apps',
|
|
|
|
);
|
|
|
|
|
|
|
|
foreach ($app_list as $app) {
|
|
|
|
echo $sep;
|
|
|
|
|
|
|
|
// if (!$vars['app']) { $vars['app'] = $app['app_type']; }
|
|
|
|
if ($vars['app'] == $app['app_type']) {
|
|
|
|
echo "<span class='pagemenu-selected'>";
|
|
|
|
// echo('<img src="images/icons/'.$app['app_type'].'.png" class="optionicon" />');
|
2016-08-18 20:28:22 -05:00
|
|
|
} else {
|
2015-07-13 20:10:26 +02:00
|
|
|
// echo('<img src="images/icons/greyscale/'.$app['app_type'].'.png" class="optionicon" />');
|
|
|
|
}
|
|
|
|
|
|
|
|
echo generate_link(nicecase($app['app_type']), array('page' => 'apps', 'app' => $app['app_type']));
|
|
|
|
if ($vars['app'] == $app['app_type']) {
|
|
|
|
echo '</span>';
|
|
|
|
}
|
|
|
|
|
|
|
|
$sep = ' | ';
|
2012-04-20 17:37:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
print_optionbar_end();
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
if ($vars['app']) {
|
|
|
|
if (is_file('pages/apps/'.mres($vars['app']).'.inc.php')) {
|
|
|
|
include 'pages/apps/'.mres($vars['app']).'.inc.php';
|
2016-08-18 20:28:22 -05:00
|
|
|
} else {
|
2015-07-13 20:10:26 +02:00
|
|
|
include 'pages/apps/default.inc.php';
|
|
|
|
}
|
2016-08-18 20:28:22 -05:00
|
|
|
} else {
|
2015-07-13 20:10:26 +02:00
|
|
|
include 'pages/apps/overview.inc.php';
|
2012-04-20 17:37:58 +00:00
|
|
|
}
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$pagetitle[] = 'Apps';
|