From 4aaf08b3a6c31573582ce2eabbcba5ab72933a5b Mon Sep 17 00:00:00 2001 From: Rose Cooper Date: Wed, 29 Nov 2023 16:06:07 +0000 Subject: [PATCH] Add http response code to check.php Allow status of GOCDB to be checked without requiring authentication --- htdocs/web_portal/GOCDB_monitor/check.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/web_portal/GOCDB_monitor/check.php b/htdocs/web_portal/GOCDB_monitor/check.php index 638b4af1f..47133d2ee 100644 --- a/htdocs/web_portal/GOCDB_monitor/check.php +++ b/htdocs/web_portal/GOCDB_monitor/check.php @@ -12,6 +12,7 @@ echo("One or more errors have been detected while checking GOCDB services - " . $message . ". See https://goc.egi.eu/portal/GOCDB_monitor/ to find out more\n"); + http_response_code(500); exit(2); // return Nagios error code for CRITICAL }