Page 1 of 1

is there some URL that does not return http 200 when nagios is not running?

Posted: Sun Mar 24, 2024 9:38 am
by pirx
I may be totally blind, but i cant find an URL that returns something else than 200 when i have shut down nagios.
I want to check that Nagios is running (using apache httpd as webserver, and basic auth).
Its nagios Core 4.4.6 (in Debian).
When i shut down nagios i get a lot of these

Code: Select all

Whoops! Error: Could not read host and service status information!
from various urls, but they all return 200 OK.

For instance /nagios4/map.php - i was hoping that would return something else than 200 OK when nagios is shut down. Like a 503 Service Unavailable.

Re: is there some URL that does not return http 200 when nagios is not running?

Posted: Tue Mar 26, 2024 12:09 pm
by bbahn
Hello @pirx,

It would seem that you are checking the Apache server while the Nagios Core service is shut down, meaning you are successfully accessing the Apache page, but the page is failing to get data from Nagios Core. Are you requesting that Nagios Core's Apache server be changed such that the Apache server returns 503 instead of 200?