+ 0) { ?>
+
+
+
+
+
+ | = $_['mount_point'] ?> |
+ = $_['size'] ?> |
+ = $_['used'] ?> |
+ = $_['available'] ?> |
+ = $_['used'] ?> % |
+ = $_['actions'] ?> |
+
+
+
+ = 80) {
+ $_STATUS = STATUS_SPACE_ISSUE;
+ } ?>
+
+ | = $fs['mount'] ?> |
+ = $fs['size'] ?> |
+ = $fs['used'] ?> |
+ = $fs['avail'] ?> |
+
+ = 80) {
+ echo "" . $fs['percentage'] . '';
+ } else {
+ echo $fs['percentage'];
+ } ?>
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+ You are running out of space on one or more of your mount points. You should resolve this before issues occur.
+
+ query('SELECT `stream_id`, `stream_display_name`, `bitrate` FROM `streams_servers` LEFT JOIN `streams` ON `streams`.`id` = `streams_servers`.`stream_id` WHERE `server_id` = ? AND `pid` > 0;', CoreUtilities::$rRequest['server']);
+ $rStreamNames = $db->get_rows(true, 'stream_id');
+ $streamUsage = array();
+ foreach ($ramdiskUsage as $rStreamID => $rUsage) {
+ if (isset($rStreamNames[$rStreamID])) {
+ $streamUsage[$rStreamID] = $rUsage;
+ }
+ }
+ asort($streamUsage);
+ $streamUsage = array_reverse($streamUsage, true);
+ $halfCount = ceil(count($streamUsage) / 2);
+ if ($halfCount > 10) {
+ $halfCount = 10;
+ }
+ $topUsage = array_slice($streamUsage, 0, $halfCount, true);
+ $bottomUsage = array_slice($streamUsage, $halfCount, $halfCount, true);
+ if ($halfCount > 0) { ?>
+
+
+
- | = $_['mount_point'] ?> |
- = $_['size'] ?> |
- = $_['used'] ?> |
- = $_['available'] ?> |
- = $_['used'] ?> % |
- = $_['actions'] ?> |
+ Stream ID |
+ Stream Name |
+ Bitrate |
+ Mount Usage |
- = 80) {
- $_STATUS = STATUS_SPACE_ISSUE;
- } ?>
+ $rUsage) { ?>
- | = $fs['mount'] ?> |
- = $fs['size'] ?> |
- = $fs['used'] ?> |
- = $fs['avail'] ?> |
-
- = 80) {
- echo "" . $fs['percentage'] . '';
- } else {
- echo $fs['percentage'];
- } ?>
- |
-
-
- |
+ = $rStreamID ?> |
+ = $rStreamNames[$rStreamID]['stream_display_name'] ?> |
+ |
+ |
-
-
- You are running out of space on one or more of your mount points. You should resolve this before issues occur.
-
- query('SELECT `stream_id`, `stream_display_name`, `bitrate` FROM `streams_servers` LEFT JOIN `streams` ON `streams`.`id` = `streams_servers`.`stream_id` WHERE `server_id` = ? AND `pid` > 0;', CoreUtilities::$rRequest['server']);
- $rStreamNames = $db->get_rows(true, 'stream_id');
- $streamUsage = array();
- foreach ($ramdiskUsage as $rStreamID => $rUsage) {
- if (isset($rStreamNames[$rStreamID])) {
- $streamUsage[$rStreamID] = $rUsage;
- }
- }
- asort($streamUsage);
- $streamUsage = array_reverse($streamUsage, true);
- $halfCount = ceil(count($streamUsage) / 2);
- if ($halfCount > 10) {
- $halfCount = 10;
- }
- $topUsage = array_slice($streamUsage, 0, $halfCount, true);
- $bottomUsage = array_slice($streamUsage, $halfCount, $halfCount, true);
- if ($halfCount > 0) { ?>
-
-
-
-
-
-
-
+
+
+
+
- | = $_['pid'] ?> |
- = $_['type'] ?> |
- = $_['process'] ?> |
- = $_['cpu_%'] ?> |
- = $_['mem_mb'] ?> |
- Runtime |
- CPU Time |
- = $_['actions'] ?> |
+ Stream ID |
+ Stream Name |
+ Bitrate |
+ Mount Usage |
- = 86400 ? sprintf('%02dd %02dh %02dm', $uptime / 86400, ($uptime / 3600) % 24, ($uptime / 60) % 60) : sprintf('%02dh %02dm %02ds', $uptime / 3600, ($uptime / 60) % 60, $uptime % 60);
- $cpuTime = $rProcess['time'];
- $cpuTime = $cpuTime >= 86400 ? sprintf('%02dd %02dh %02dm', $cpuTime / 86400, ($cpuTime / 3600) % 24, ($cpuTime / 60) % 60) : sprintf('%02dh %02dm %02ds', $cpuTime / 3600, ($cpuTime / 60) % 60, $cpuTime % 60);
+ $rUsage) { ?>
+
+ | = $rStreamID ?> |
+ = $rStreamNames[$rStreamID]['stream_display_name'] ?> |
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | = $_['pid'] ?> |
+ = $_['type'] ?> |
+ = $_['process'] ?> |
+ = $_['cpu_%'] ?> |
+ = $_['mem_mb'] ?> |
+ Runtime |
+ CPU Time |
+ = $_['actions'] ?> |
+
+
+
+ = 86400 ? sprintf('%02dd %02dh %02dm', $uptime / 86400, ($uptime / 3600) % 24, ($uptime / 60) % 60) : sprintf('%02dh %02dm %02ds', $uptime / 3600, ($uptime / 60) % 60, $uptime % 60);
+ $cpuTime = $rProcess['time'];
+ $cpuTime = $cpuTime >= 86400 ? sprintf('%02dd %02dh %02dm', $cpuTime / 86400, ($cpuTime / 3600) % 24, ($cpuTime / 60) % 60) : sprintf('%02dh %02dm %02ds', $cpuTime / 3600, ($cpuTime / 60) % 60, $cpuTime % 60);
- $A134afcd6d59abf6 = array('proxy' => 'Live Proxy', 'llod' => 'LLOD', 'loopback' => 'Loopback', 'queue' => 'VOD Queue', 'ondemand' => 'On-Demand Instant Off', 'plex_item' => 'Plex Item Scan', 'watch_item' => 'Watch Item Scan', 'cache_handler' => 'Cache Handler', 'certbot' => 'Certbot SSL Automation', 'closed_cons' => 'Closed Connection Handler', 'signals' => 'Signal Handler', 'watchdog' => 'Server Watchdog');
- $rCrons = array('plex' => 'Plex Sync', 'cache_engine' => 'Cache Generator', 'activity' => 'Activity Cron', 'backups' => 'Backup Cron', 'cache' => 'Cache Cron', 'epg' => 'EPG Cron', 'lines_logs' => 'Line Logging Cron', 'root_signals' => 'Root Signal Cron', 'series' => 'Series Cron', 'servers' => 'Servers Cron', 'stats' => 'Stats Cron', 'streams' => 'Streams Cron', 'streams_logs' => 'Stream Logging Cron', 'tmdb' => 'TMDb Refresh Cron', 'tmp' => 'Temp Cron', 'users' => 'Users Cron', 'vod' => 'VOD Cron', 'watch' => 'Watch Folder Cron');
+ $A134afcd6d59abf6 = array('proxy' => 'Live Proxy', 'llod' => 'LLOD', 'loopback' => 'Loopback', 'queue' => 'VOD Queue', 'ondemand' => 'On-Demand Instant Off', 'plex_item' => 'Plex Item Scan', 'watch_item' => 'Watch Item Scan', 'cache_handler' => 'Cache Handler', 'certbot' => 'Certbot SSL Automation', 'closed_cons' => 'Closed Connection Handler', 'signals' => 'Signal Handler', 'watchdog' => 'Server Watchdog');
+ $rCrons = array('plex' => 'Plex Sync', 'cache_engine' => 'Cache Generator', 'activity' => 'Activity Cron', 'backups' => 'Backup Cron', 'cache' => 'Cache Cron', 'epg' => 'EPG Cron', 'lines_logs' => 'Line Logging Cron', 'root_signals' => 'Root Signal Cron', 'series' => 'Series Cron', 'servers' => 'Servers Cron', 'stats' => 'Stats Cron', 'streams' => 'Streams Cron', 'streams_logs' => 'Stream Logging Cron', 'tmdb' => 'TMDb Refresh Cron', 'tmp' => 'Temp Cron', 'users' => 'Users Cron', 'vod' => 'VOD Cron', 'watch' => 'Watch Folder Cron');
- if (isset($A134afcd6d59abf6[basename(explode(' ', trim(explode('#', $rProcess['command'])[0]))[0], '.php')])) {
- $rProcess['command'] = $A134afcd6d59abf6[basename(explode(' ', trim(explode('#', $rProcess['command'])[0]))[0], '.php')];
- $rType = 'XC_VM CLI';
+ if (isset($A134afcd6d59abf6[basename(explode(' ', trim(explode('#', $rProcess['command'])[0]))[0], '.php')])) {
+ $rProcess['command'] = $A134afcd6d59abf6[basename(explode(' ', trim(explode('#', $rProcess['command'])[0]))[0], '.php')];
+ $rType = 'XC_VM CLI';
+ } else {
+ if (isset($A134afcd6d59abf6[basename(trim(explode('#', $rProcess['command'])[0]), '.php')])) {
+ $rProcess['command'] = $A134afcd6d59abf6[basename(trim(explode('#', $rProcess['command'])[0]), '.php')];
+ $rType = 'XC_VM CLI';
+ } else {
+ if (isset($rCrons[basename(explode(' ', trim(explode('#', $rProcess['command'])[0]))[0], '.php')])) {
+ $rProcess['command'] = $rCrons[basename(explode(' ', trim(explode('#', $rProcess['command'])[0]))[0], '.php')];
+ $rType = 'XC_VM Cron';
} else {
- if (isset($A134afcd6d59abf6[basename(trim(explode('#', $rProcess['command'])[0]), '.php')])) {
- $rProcess['command'] = $A134afcd6d59abf6[basename(trim(explode('#', $rProcess['command'])[0]), '.php')];
- $rType = 'XC_VM CLI';
+ if (stripos($rProcess['command'], 'nginx: master process') !== false) {
+ $rProcess['command'] = 'NGINX Master Process';
+ $rType = 'NGINX Master';
} else {
- if (isset($rCrons[basename(explode(' ', trim(explode('#', $rProcess['command'])[0]))[0], '.php')])) {
- $rProcess['command'] = $rCrons[basename(explode(' ', trim(explode('#', $rProcess['command'])[0]))[0], '.php')];
- $rType = 'XC_VM Cron';
+ if (stripos($rProcess['command'], 'nginx: worker process') !== false) {
+ $rProcess['command'] = 'NGINX Worker Process';
+ $rType = 'NGINX Pool';
} else {
- if (stripos($rProcess['command'], 'nginx: master process') !== false) {
- $rProcess['command'] = 'NGINX Master Process';
- $rType = 'NGINX Master';
+ if (stripos($rProcess['command'], 'php-fpm: master process') !== false) {
+ $rProcess['command'] = 'PHP Master Process';
+ $rType = 'PHP Master';
} else {
- if (stripos($rProcess['command'], 'nginx: worker process') !== false) {
- $rProcess['command'] = 'NGINX Worker Process';
- $rType = 'NGINX Pool';
+ if (stripos($rProcess['command'], 'redis-server') !== false) {
+ $rProcess['command'] = 'Redis Server';
+ $rType = 'Redis';
} else {
- if (stripos($rProcess['command'], 'php-fpm: master process') !== false) {
- $rProcess['command'] = 'PHP Master Process';
- $rType = 'PHP Master';
- } else {
- if (stripos($rProcess['command'], 'redis-server') !== false) {
- $rProcess['command'] = 'Redis Server';
- $rType = 'Redis';
- } else {
- $rProcess['command'] = 'Command: ' . $rProcess['command'];
- $rType = array('pid' => $_['main'] . ' - ', 'vframes' => $_['thumbnail'] . ' - ', 'monitor_pid' => $_['monitor'] . ' - ', 'delay_pid' => $_['delayed'] . ' - ', 'activity' => $_['line_activity'] . ' - ', 'timeshift' => $_['timeshift'] . ' - ', null => '')[$rStreams[$rProcess['pid']]['pid_type']] . array(1 => $_['stream'], 2 => $_['movie'], 3 => $_['created_channel'], 4 => $_['radio'], 5 => $_['episode'], null => $_['system'])[$rStreams[$rProcess['pid']]['type']];
- }
- }
+ $rProcess['command'] = 'Command: ' . $rProcess['command'];
+ $rType = array('pid' => $_['main'] . ' - ', 'vframes' => $_['thumbnail'] . ' - ', 'monitor_pid' => $_['monitor'] . ' - ', 'delay_pid' => $_['delayed'] . ' - ', 'activity' => $_['line_activity'] . ' - ', 'timeshift' => $_['timeshift'] . ' - ', null => '')[$rStreams[$rProcess['pid']]['pid_type']] . array(1 => $_['stream'], 2 => $_['movie'], 3 => $_['created_channel'], 4 => $_['radio'], 5 => $_['episode'], null => $_['system'])[$rStreams[$rProcess['pid']]['type']];
}
}
}
}
}
- ?>
+ }
+ }
+ ?>
-
- | = $rProcess['pid'] ?> |
- = $rType ?> |
- = $rProcess['command'] ?> |
- avg: = number_format($rProcess['load_average'], 2) ?>% |
- |
- |
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
+
+ | = $rProcess['pid'] ?> |
+ = $rType ?> |
+ = $rProcess['command'] ?> |
+ avg: = number_format($rProcess['load_average'], 2) ?>% |
+ |
+ |
+ |
+
+
+ |
+
+
+
+
+
+
+
+