Files
librenms-librenms/html/pages/apps.inc.php
T

173 lines
2.8 KiB
PHP
Raw Normal View History

<?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',
);
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
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
2016-08-26 12:08:48 +01:00
$graphs['freeswitch'] = array(
'peak',
'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',
);
print_optionbar_start();
2015-07-13 20:10:26 +02:00
echo "<span style='font-weight: bold;'>Apps</span> &#187; ";
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 = ' | ';
}
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';
}
2015-07-13 20:10:26 +02:00
$pagetitle[] = 'Apps';