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',
|
|
|
|
);
|
|
|
|
|
2017-03-01 12:34:22 -06:00
|
|
|
$graphs['postfix'] = array(
|
|
|
|
'messages',
|
|
|
|
'qstats',
|
|
|
|
'bytes',
|
|
|
|
'sr',
|
|
|
|
'deferral',
|
|
|
|
'rejects',
|
|
|
|
);
|
|
|
|
|
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
|
|
|
|
2017-03-01 17:46:03 -06:00
|
|
|
$graphs['postgres'] = array(
|
|
|
|
'backends',
|
|
|
|
'cr',
|
|
|
|
'rows',
|
|
|
|
'hr',
|
|
|
|
'index',
|
|
|
|
'sequential'
|
|
|
|
);
|
|
|
|
|
2016-08-04 22:02:36 +03:00
|
|
|
$graphs['powerdns'] = array(
|
|
|
|
'latency',
|
|
|
|
'fail',
|
|
|
|
'packetcache',
|
|
|
|
'querycache',
|
|
|
|
'recursing',
|
|
|
|
'queries',
|
|
|
|
'queries_udp',
|
|
|
|
);
|
|
|
|
|
2016-09-10 15:37:00 +03:00
|
|
|
$graphs['ntp-client'] = array(
|
|
|
|
'stats',
|
|
|
|
'freq',
|
|
|
|
);
|
|
|
|
|
|
|
|
$graphs['ntp-server'] = array(
|
|
|
|
'stats',
|
|
|
|
'freq',
|
|
|
|
'stratum',
|
|
|
|
'buffer',
|
|
|
|
'bits',
|
|
|
|
'packets',
|
|
|
|
'uptime',
|
|
|
|
);
|
|
|
|
|
2016-08-04 22:02:36 +03:00
|
|
|
$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
|
|
|
|
2017-04-28 23:48:26 +02:00
|
|
|
$graphs['nfs-server'] = array(
|
|
|
|
'io',
|
|
|
|
'net_tcp_conns',
|
|
|
|
'rpc',
|
|
|
|
);
|
|
|
|
|
2016-08-07 06:24:34 +03:00
|
|
|
$graphs['os-updates'] = array(
|
|
|
|
'packages',
|
|
|
|
);
|
2017-01-20 10:47:13 +02:00
|
|
|
|
2016-08-07 06:24:34 +03:00
|
|
|
$graphs['dhcp-stats'] = array(
|
|
|
|
'stats',
|
|
|
|
);
|
2016-08-04 16:43:01 +02:00
|
|
|
|
2017-02-24 11:50:33 -06:00
|
|
|
$graphs['fail2ban'] = array(
|
|
|
|
'banned',
|
|
|
|
);
|
|
|
|
|
2016-08-26 12:08:48 +01:00
|
|
|
$graphs['freeswitch'] = array(
|
|
|
|
'peak',
|
2017-10-26 13:27:11 +03:00
|
|
|
'calls',
|
|
|
|
'channels',
|
2016-08-26 12:08:48 +01:00
|
|
|
'callsIn',
|
|
|
|
'callsOut',
|
|
|
|
);
|
|
|
|
|
2016-09-13 05:59:33 +03:00
|
|
|
$graphs['ups-nut'] = array(
|
|
|
|
'remaining',
|
|
|
|
'load',
|
|
|
|
'voltage_battery',
|
|
|
|
'charge',
|
|
|
|
'voltage_input',
|
|
|
|
);
|
|
|
|
|
2016-09-24 23:49:35 +03:00
|
|
|
$graphs['ups-apcups'] = array(
|
|
|
|
'remaining',
|
|
|
|
'load',
|
|
|
|
'voltage_battery',
|
|
|
|
'charge',
|
|
|
|
'voltage_input',
|
|
|
|
);
|
|
|
|
|
2016-10-08 15:25:50 -05:00
|
|
|
$graphs['gpsd'] = array(
|
|
|
|
'satellites',
|
|
|
|
'dop',
|
|
|
|
'mode',
|
|
|
|
);
|
|
|
|
|
2017-01-20 10:47:13 +02:00
|
|
|
$graphs['exim-stats'] = array(
|
|
|
|
'frozen',
|
|
|
|
'queue'
|
|
|
|
);
|
|
|
|
|
2017-02-18 06:23:55 +01:00
|
|
|
$graphs['php-fpm'] = array(
|
|
|
|
'stats'
|
|
|
|
);
|
|
|
|
|
2017-03-03 14:41:20 -06:00
|
|
|
$graphs['nvidia'] = array(
|
|
|
|
'sm',
|
|
|
|
'mem',
|
|
|
|
'enc',
|
|
|
|
'dec',
|
|
|
|
'rxpci',
|
|
|
|
'txpci',
|
|
|
|
'fb',
|
|
|
|
'bar1',
|
|
|
|
'mclk',
|
|
|
|
'pclk',
|
|
|
|
'pwr',
|
|
|
|
'temp',
|
|
|
|
'pviol',
|
|
|
|
'tviol',
|
|
|
|
'sbecc',
|
|
|
|
'dbecc',
|
|
|
|
);
|
|
|
|
|
2017-03-03 12:55:33 -06:00
|
|
|
$graphs['squid'] = array(
|
|
|
|
'memory',
|
|
|
|
'clients',
|
|
|
|
'cpuusage',
|
|
|
|
'objcount',
|
|
|
|
'filedescr',
|
|
|
|
'httpbw',
|
|
|
|
'http',
|
|
|
|
'server',
|
|
|
|
'serverbw',
|
|
|
|
'reqhit',
|
|
|
|
'bytehit',
|
|
|
|
'sysnumread',
|
|
|
|
'pagefaults',
|
2017-03-03 14:41:20 -06:00
|
|
|
'cputime',
|
2017-03-03 12:55:33 -06:00
|
|
|
);
|
|
|
|
|
2017-04-24 15:19:36 +02:00
|
|
|
$graphs['opengridscheduler'] = array(
|
|
|
|
'ogs'
|
|
|
|
);
|
|
|
|
|
2017-03-03 08:48:46 -06:00
|
|
|
$graphs['fbsd-nfs-server'] = array(
|
|
|
|
'stats',
|
|
|
|
'cache',
|
|
|
|
'gathering',
|
|
|
|
);
|
|
|
|
|
|
|
|
$graphs['fbsd-nfs-client'] = array(
|
|
|
|
'stats',
|
|
|
|
'cache',
|
|
|
|
'rpc',
|
|
|
|
);
|
|
|
|
|
2017-03-11 07:09:51 -06:00
|
|
|
$graphs['unbound'] = array(
|
|
|
|
'queries',
|
2017-05-04 22:04:10 +12:00
|
|
|
'cache',
|
2017-03-11 07:09:51 -06:00
|
|
|
);
|
|
|
|
|
2017-05-03 09:23:33 -05:00
|
|
|
$graphs['bind'] = array(
|
|
|
|
'incoming',
|
|
|
|
'outgoing',
|
|
|
|
'rr_positive',
|
|
|
|
'rr_negative',
|
|
|
|
'rtt',
|
|
|
|
'resolver_failure',
|
|
|
|
'resolver_qrs',
|
|
|
|
'resolver_naf',
|
|
|
|
'server_received',
|
|
|
|
'server_results',
|
|
|
|
'server_issues',
|
|
|
|
'cache_hm',
|
|
|
|
'adb_in',
|
|
|
|
'sockets_active',
|
|
|
|
'sockets_errors',
|
|
|
|
);
|
|
|
|
|
2017-03-22 09:28:50 -05:00
|
|
|
$graphs['smart'] = array(
|
|
|
|
'id5',
|
|
|
|
'id10',
|
|
|
|
'id173',
|
|
|
|
'id183',
|
|
|
|
'id184',
|
|
|
|
'id187',
|
|
|
|
'id188',
|
|
|
|
'id190',
|
|
|
|
'id194',
|
|
|
|
'id196',
|
|
|
|
'id197',
|
|
|
|
'id198',
|
|
|
|
'id199',
|
|
|
|
'id231',
|
|
|
|
'id233',
|
|
|
|
);
|
|
|
|
|
2017-04-27 22:54:39 +03:00
|
|
|
$graphs['sdfsinfo'] = array(
|
|
|
|
'volume',
|
|
|
|
'blocks',
|
|
|
|
'rates',
|
|
|
|
);
|
|
|
|
|
2017-06-06 01:00:09 +03:00
|
|
|
$graphs['pi-hole'] = array(
|
2017-08-18 01:56:50 -05:00
|
|
|
'query_types',
|
|
|
|
'destinations',
|
|
|
|
'query_results',
|
|
|
|
'block_percent',
|
|
|
|
'blocklist',
|
2017-06-06 01:00:09 +03: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'] == $app['app_type']) {
|
|
|
|
echo "<span class='pagemenu-selected'>";
|
|
|
|
}
|
|
|
|
|
|
|
|
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';
|