Apache per server-status Überwachen

Hallo zusammen,

ich versuche eine Apache2 unter Debian 12 per server-status zu Überwachen.

Der Apache liefert per http://localhost/server-status und (testweise) per http:///server-status seine bekannte Status Seite aus.

Auf dem Host ist das Plugin passend kopiert.

root@WEBAPP1:/usr/lib/check_mk_agent/plugins# ls -l
insgesamt 12
-rw-r--r-- 1 root root 10923 28. Jul 13:27 apache_status.py

Ebenso eine Regel für den Host erstellt

Eine /etc/check_mk/apache_status.cfg gibts auch…

#ENABLE_OMD_SITE_DETECTION = True
#
#CUSTOM_ADDRESS_OVERWRITE = {
#    '127.0.0.1:80' : "internet",
#
#}
# Note: Activate this only if the autodetection fails.
servers = [
{
 'protocol' : 'http',
 'address'  : 'localhost',
 'port'     : 80 ,
 'instance' : 'Your instance name', # optional
},
#{
# 'protocol' : 'https',
# 'address'  : 'localhost',
# 'port'     : 443 ,
#},
#{
# 'protocol' : 'https',
# 'address'  : 'external-host',
# 'port'     : 443 ,
# 'cafile'   : '/path/to/cafile', # optional
#},
]

Ein wget http://localhost/server-status gibt auch eine passende html Seite zurück.

Leider bleibt der Check auf dem betreffenden Host immer auf Pending.

Jemand ne Idee?

Viele Grüße
Michael

Fehler gefunden, eigentlich ganz einfach.
Ein chmod +x apache_status.py für das Script wirkt wunder :roll_eyes:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.