Check MK Agent for Apache : Data fetch failure

Hi everybody,
I’ve got LibreNMS on Debian, and i wanted to check and monitored Apache on an other server (Debian too).
I followed the documentation (
Unix-agent and Applications are enabled on LibreNMS
check_mk_agent is installed on the other server and seems good working
systemctl status check_mk.socket : active

But the graphs are empty on LibreNMS
When I try : /usr/lib/check_mk_agent/local/apache, I’ve got : Data fetch failure
And in the apache log (/var/log/apache2/other_vhosts_access.log), I’ve got :
[15/Dec/2021:11:40:22 +0100] “GET /server-status?auto HTTP/1.1” 302 521 “-” “LWP::Simple/6.36 libwww-perl/6.36”

access.log is empty and nothing significant in error.log

And last, on the client, when I try : wget -pv http://localhost/server-status (sorry it’s in french) :
Résolution de localhost (localhost)… ::1,
Connexion à localhost (localhost)|::1|:80… connecté.
requête HTTP transmise, en attente de la réponse… 302 Found

How can I fix it ?


I found a solution but very dirty :
I comment the redirection line in the configuration file of the web site in /etc/apache2/sites-enabled directory.
Fortunately it is just a local website
Here is the line I comment :
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R,L]

In this part : <VirtualHost *:80>

I keep this post open because I want to find a better solution

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.