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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
pirx
Posts: 1
Joined: Tue Mar 15, 2022 5:18 pm

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

Post 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.
bbahn
Posts: 112
Joined: Thu Jan 12, 2023 5:42 pm

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

Post 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?
April: Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Post Reply