404 ERROR ! Sites not working

CMK version: - 2.3.0p26.cre
OS version: - Red Hat Enterprise Linux release 8.10 (Ootpa)

Error message:

Not Found

The requested URL was not found on this server.

NOTE :
There was no changes made on server, however all of sudden it started giving error with 404, checked in apache error & access log, but no error received, all services are also in running state.

if bmon is your site name, try appending /monitoring/ to the URL, does that help?

This should also result in a 404 in a normal CMK instance :wink:

With “bmon” the site name this error means that the system internal Apache has not loaded the configuration files for the sites.
That’s all.

I don’t think so. Nothing happens without any action before. Sometimes it is enough that some updates are installed. Redhat and clones are a pain in this department.

2 Likes

I beg to differ regarding RH -clones or spins-offs (i myself run RockyLinux).
But that should be a discussion outside of this specific post :slight_smile:

NOTE :
There was no changes made on server, however all of sudden it started giving error with 404, checked in apache error & access log, but no error received, all services are also in running state.

As @andreas-doehler mentioned things do not break on their own ‘just because they can’.
Sometimes the origin of such causes are outside of your influence, or even outside of your play field depending in a/the organization you are in.
So in this a/the big question is who/what else has influence/access on/to your Monitoring server ?

Regarding the error seen:

The requested URL was not found on this server.

The message you posted is returned from Apache/the webserver itself, so if you were to look in the appropriate logs regarding this in it’s error_log.
These logs are available to you as site-user under ~var/log/apache/error_log

Additional question:
What does the command (via console) omd status return ?

  • Glowsome
1 Like

i tried adding monitoring in my url but it did not worked

it returns “running”
also checked in error logs there are no error observed.

Run this one by one:

$ tail -n 10 /var/log/apache2/*.log
$ omd su <name-of-site>
$ tail -n 10 var/log/apache/access_log
$ exit

Any good output?

Normaly Checkmk gives a nice error when the site is not running, so you MUST get a Checkmk related error message from http://internal-ip/site/check_mk/.

EDIT: Sorry you checked that logs above, can you post some of them here?

Nah!! I did not found any good solutions to it…
looking at apache file had lot of error so i scrape the apache and installed complete new one…

1 Like