Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion servcheck_process.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,13 @@ function servcheck_run_test(array $test, bool $force): void {
}

if (api_plugin_is_enabled('maint')) {
require_once($config['base_path'] . '/plugins/maint/functions.php');
if (file_exists($config['base_path'] . '/plugins/maint/includes/functions.php')) {
require_once($config['base_path'] . '/plugins/maint/includes/functions.php');
} else if (file_exists($config['base_path'] . '/plugins/maint/functions.php')) {
require_once($config['base_path'] . '/plugins/maint/functions.php');
} else {
cacti_log('ERROR: cannot include maint functions', false, 'SERVCHECK');
}
}

if (function_exists('plugin_maint_check_servcheck_test')) {
Expand Down
1 change: 1 addition & 0 deletions tests/bin/patch-coverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ function changed_lines($base_ref) {
$unmeasured_allowlist = [
'servcheck_ca.php', // web UI entry point (require auth.php); not loadable in the isolated unit process
'servcheck_credential.php', // web UI entry point (require auth.php); not loadable in the isolated unit process
'servcheck_process.php', // CLI/daemon poller entry point (shebang, chdir + include, pcntl signal handling); not loadable in the isolated unit process
'servcheck_proxy.php', // web UI entry point (require auth.php); not loadable in the isolated unit process
'servcheck_restapi.php', // web UI entry point (require auth.php); not loadable in the isolated unit process
'servcheck_test.php', // web UI entry point (require auth.php); not loadable in the isolated unit process
Expand Down
Loading