Skip to content

Commit

Permalink
Add http response code to check.php
Browse files Browse the repository at this point in the history
Allow status of GOCDB to be checked without requiring authentication
  • Loading branch information
RoseECooper committed Nov 29, 2023
1 parent deefe1c commit 7784fec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/web_portal/GOCDB_monitor/check.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7784fec

Please sign in to comment.