diff --git a/html/status.php b/html/status.php index cc159ab..07098db 100644 --- a/html/status.php +++ b/html/status.php @@ -5,10 +5,12 @@ if ($db_link = mysqli_connect('localhost', 'nagios', '', '')) { mysqli_close($db_link); /* 200 OK */ http_response_code(200); + echo "200 OK\n"; } else { /* 503 Service Unavailable */ http_response_code(503); + echo "503 Service Unavailable\n"; }