<div style="background-color:red !important;color:white;"><b><?php echo __('Warning');?></b>: <?php echo __('MISP cannot access your /proc directory to check the status of the worker processes, which means that dead workers will not be detected by the diagnostic tool. If you would like to regain this functionality, make sure that the open_basedir directive is not set, or that /proc is included in it.');?></div>
<?php
endif;
foreach ($worker_array as $type => $data):
if ($type == 'proc_accessible') continue;
$queueStatusMessage = __("Issues prevent jobs from being processed. Please resolve them below.");
$queueStatus = false;
if ($data['ok']) {
if (!$worker_array['proc_accessible']) {
$queueStatus = 'N/A';
$queueStatusMessage = __("Worker started with the correct user, but the current status is unknown.");
} else {
$queueStatus = true;
$queueStatusMessage = __("OK");
}
} else if (!empty($data['workers'])) {
foreach ($data['workers'] as $worker) {
if ($worker['alive']) {
$queueStatus = true;
$queueStatusMessage = __("There are issues with the worker(s), but at least one healthy worker is monitoring the queue.");
echo $this->Form->postLink('', '/servers/stopWorker/' . h($worker['pid']), array('class' => 'icon-trash' . $icon_modifier, 'title' => __('Stop (if still running) and remove this worker. This will immediately terminate any jobs that are being executed by it.')));