' . html_escape(__('Monitoring view', 'hpcsched')) . '
'; + OperatorPage::render($rows, $session, $user, $now, $actions); + bottom_footer(); +} catch (Throwable $error) { + cacti_log('Operator page failed (' . get_class($error) . ')', false, 'HPCSCHED'); + http_response_code(503); + top_header(); + print '' . html_escape(__('Observations could not be read. Ask an administrator to check the plugin log.', 'hpcsched')) . '
'; + bottom_footer(); +} diff --git a/include/operator.php b/include/operator.php new file mode 100644 index 0000000..01744d5 --- /dev/null +++ b/include/operator.php @@ -0,0 +1,46 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_hpcsched, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_hpcsched + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +use Somethingwithproof\Hpcsched\SystemClock; +use Somethingwithproof\Hpcsched\RunRepository; +use Somethingwithproof\Hpcsched\ClusterRepository; + +/** @return list' . html_escape(__('Review the recorded observations below. Acknowledgments are personal to this session, expire when observations change, and never suppress alerts or change health.', 'hpcsched')) . '
'; + print '