mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
213 lines
3.1 KiB
PHP
213 lines
3.1 KiB
PHP
<?php
|
|
|
|
$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',
|
|
);
|
|
|
|
$graphs['postfix'] = array(
|
|
'messages',
|
|
'qstats',
|
|
'bytes',
|
|
'sr',
|
|
'deferral',
|
|
'rejects',
|
|
);
|
|
|
|
$graphs['powerdns-recursor'] = array(
|
|
'questions',
|
|
'answers',
|
|
'cache_performance',
|
|
'outqueries'
|
|
);
|
|
|
|
$graphs['rrdcached'] = array(
|
|
'queue_length',
|
|
'events',
|
|
'tree',
|
|
'journal'
|
|
);
|
|
|
|
$graphs['bind'] = array('queries');
|
|
|
|
$graphs['tinydns'] = array(
|
|
'queries',
|
|
'errors',
|
|
'dnssec',
|
|
'other',
|
|
);
|
|
|
|
$graphs['postgres'] = array(
|
|
'backends',
|
|
'cr',
|
|
'rows',
|
|
'hr',
|
|
'index',
|
|
'sequential'
|
|
);
|
|
|
|
$graphs['powerdns'] = array(
|
|
'latency',
|
|
'fail',
|
|
'packetcache',
|
|
'querycache',
|
|
'recursing',
|
|
'queries',
|
|
'queries_udp',
|
|
);
|
|
|
|
$graphs['ntp-client'] = array(
|
|
'stats',
|
|
'freq',
|
|
);
|
|
|
|
$graphs['ntp-server'] = array(
|
|
'stats',
|
|
'freq',
|
|
'stratum',
|
|
'buffer',
|
|
'bits',
|
|
'packets',
|
|
'uptime',
|
|
);
|
|
|
|
$graphs['nfs-v3-stats'] = array(
|
|
'stats',
|
|
'io',
|
|
'fh',
|
|
'rc',
|
|
'ra',
|
|
'net',
|
|
'rpc',
|
|
);
|
|
|
|
$graphs['os-updates'] = array(
|
|
'packages',
|
|
);
|
|
|
|
$graphs['dhcp-stats'] = array(
|
|
'stats',
|
|
);
|
|
|
|
$graphs['fail2ban'] = array(
|
|
'banned',
|
|
);
|
|
|
|
$graphs['freeswitch'] = array(
|
|
'peak',
|
|
'callsIn',
|
|
'callsOut',
|
|
);
|
|
|
|
$graphs['ups-nut'] = array(
|
|
'remaining',
|
|
'load',
|
|
'voltage_battery',
|
|
'charge',
|
|
'voltage_input',
|
|
);
|
|
|
|
$graphs['ups-apcups'] = array(
|
|
'remaining',
|
|
'load',
|
|
'voltage_battery',
|
|
'charge',
|
|
'voltage_input',
|
|
);
|
|
|
|
$graphs['gpsd'] = array(
|
|
'satellites',
|
|
'dop',
|
|
'mode',
|
|
);
|
|
|
|
$graphs['exim-stats'] = array(
|
|
'frozen',
|
|
'queue'
|
|
);
|
|
|
|
$graphs['php-fpm'] = array(
|
|
'stats'
|
|
);
|
|
|
|
$graphs['fbsd-nfs-server'] = array(
|
|
'stats',
|
|
'cache',
|
|
'gathering',
|
|
);
|
|
|
|
$graphs['fbsd-nfs-client'] = array(
|
|
'stats',
|
|
'cache',
|
|
'rpc',
|
|
);
|
|
|
|
print_optionbar_start();
|
|
|
|
echo "<span style='font-weight: bold;'>Apps</span> » ";
|
|
|
|
unset($sep);
|
|
|
|
$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 = ' | ';
|
|
}
|
|
|
|
print_optionbar_end();
|
|
|
|
if ($vars['app']) {
|
|
if (is_file('pages/apps/'.mres($vars['app']).'.inc.php')) {
|
|
include 'pages/apps/'.mres($vars['app']).'.inc.php';
|
|
} else {
|
|
include 'pages/apps/default.inc.php';
|
|
}
|
|
} else {
|
|
include 'pages/apps/overview.inc.php';
|
|
}
|
|
|
|
$pagetitle[] = 'Apps';
|