Debian 7 + Munin + Apache2 + NGINX 404 Apache2 status
Debian 7 + Munin + Apache2 + NGINX 404 Apache2 status
Hi,
hab ein kleines Problem seit dem ich Nginx nutze.
System:
Deb 7
Munin 2.0.6-4+deb7u2
Apache2
Nginx
Plesk 12
Problem:
ich kann mit Munin Nginx überwachen da geht alles aber die Apache2-Status abfrage geht nicht, wenn ich in der Konsole mit w3m die Abfrage mache kommt nur die Meldung: Nginx 404 Page not found.
Da ich ja Nginx nutze könnte mir das eigentlich egal sein aber gestern hat mein Apache ein Sysload von 2.2 erreicht und ich finde den Grund nicht daher denke ich jetzt das es doch nicht schlecht wäre wenn das funktionieren würde.
Über Plesk ist das Apache Module für den Status aktiviert und das Modle ist auch aktiv, wie bekomme ich es jetzt hin das Nginx die Apache2 Status anfrage durch reicht und am besten nur für den Localhost ?
Danke für jeden Tipp.
Cya
Cheech
hab ein kleines Problem seit dem ich Nginx nutze.
System:
Deb 7
Munin 2.0.6-4+deb7u2
Apache2
Nginx
Plesk 12
Problem:
ich kann mit Munin Nginx überwachen da geht alles aber die Apache2-Status abfrage geht nicht, wenn ich in der Konsole mit w3m die Abfrage mache kommt nur die Meldung: Nginx 404 Page not found.
Da ich ja Nginx nutze könnte mir das eigentlich egal sein aber gestern hat mein Apache ein Sysload von 2.2 erreicht und ich finde den Grund nicht daher denke ich jetzt das es doch nicht schlecht wäre wenn das funktionieren würde.
Über Plesk ist das Apache Module für den Status aktiviert und das Modle ist auch aktiv, wie bekomme ich es jetzt hin das Nginx die Apache2 Status anfrage durch reicht und am besten nur für den Localhost ?
Danke für jeden Tipp.
Cya
Cheech
Re: Debian 7 + Munin + Apache2 + NGINX 404 Apache2 status
Wie hast Du die beiden denn eingerichtet?
Logs?
Logs?
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
Re: Debian 7 + Munin + Apache2 + NGINX 404 Apache2 status
Hier mal nen kleiner log auszug:
/var/log/nginx/access.log:
127.0.0.1 - - [26/Mar/2015:11:20:09 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:20:09 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:25:02 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:25:09 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:25:10 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:30:02 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:30:09 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:30:10 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
Cya
Cheeech
/var/log/nginx/access.log:
127.0.0.1 - - [26/Mar/2015:11:20:09 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:20:09 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:25:02 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:25:09 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:25:10 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:30:02 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:30:09 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:11:30:10 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
Cya
Cheeech
Re: Debian 7 + Munin + Apache2 + NGINX 404 Apache2 status
Noch nen paar configs:
/etc/nginx/conf.d/nginx.conf
/etc/nginx/plesk.conf.d/server.conf
/etc/munin/apache.conf
Cya
Cheech
/etc/nginx/conf.d/nginx.conf
Code: Alles auswählen
server { listen 127.0.0.1:80;
location /nginx_status {
proxy_pass http://127.0.0.1:7080;
# Turn on nginx stats
stub_status on;
# I do not need logs for stats
access_log on;
allow 127.0.0.1;
# Send rest of the world to /dev/null #
deny all;
}
location /server-status/ {
proxy_pass http://127.0.0.1:7080;
access_log on;
allow 127.0.0.1;
deny all;
}
}
Code: Alles auswählen
server { listen 127.0.0.1:80;
location /nginx_status {
proxy_pass http://127.0.0.1:7080;
# Turn on nginx stats
stub_status on;
# I do not need logs for stats
access_log on;
allow 127.0.0.1;
# Send rest of the world to /dev/null #
deny all;
}
location /server-status/ {
proxy_pass http://127.0.0.1:7080;
access_log on;
allow 127.0.0.1;
deny all;
}
}
Code: Alles auswählen
<Location /server-status>
SetHandler server-status
Allow from 127.0.0.1
Deny from all
</Location>
<Location /nginx_status>
stub_status on
allow 127.0.0.1
deny all
</Location>
Cheech
Re: Debian 7 + Munin + Apache2 + NGINX 404 Apache2 status
alaCode: Alles auswählen
location /server-status/ { proxy_pass http://127.0.0.1:7080; ...
http://www.apache.org/server-status
<->
http://www.apache.org/server-status/
würde ich eher
Code: Alles auswählen
location /server-status {
proxy_pass http://127.0.0.1:7080/server-status;
#evtl. auch nur
#proxy_pass http://127.0.0.1:7080;
...
--------------------------------------------------
Leitet das die nginx-Statusabfrage nicht auch an den apache weiter?Code: Alles auswählen
location /nginx_status { proxy_pass http://127.0.0.1:7080; # Turn on nginx stats stub_status on; ...
Nicht eher sowas?
Code: Alles auswählen
location /nginx_status {
#proxy_pass http://127.0.0.1:7080;
# Turn on nginx stats
stub_status on;
...
wäre eine nginx-Anweisung in einer Apache.conf?Code: Alles auswählen
<Location /nginx_status> stub_status on
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
Re: Debian 7 + Munin + Apache2 + NGINX 404 Apache2 status
Hi,
die Nginx status abfrage geht da bekomme ich alle Daten nur die Apache Daten nicht.
Und ja den Nginx eintrag in der Apache conf ist wieder draussen gab auch nen Fehler beim neustart.
Ich teste mal
Und mal schauen ob was geht.
THX
Cya
Cheech
die Nginx status abfrage geht da bekomme ich alle Daten nur die Apache Daten nicht.
Und ja den Nginx eintrag in der Apache conf ist wieder draussen gab auch nen Fehler beim neustart.
Ich teste mal
Code: Alles auswählen
location /server-status {
proxy_pass http://127.0.0.1:7080/server-status;
#evtl. auch nur
#proxy_pass http://127.0.0.1:7080;
THX
Cya
Cheech
Re: Debian 7 + Munin + Apache2 + NGINX 404 Apache2 status
leider keine änderung.
127.0.0.1 - - [26/Mar/2015:15:55:02 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:15:55:09 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:15:55:10 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
Cya
Cheech
127.0.0.1 - - [26/Mar/2015:15:55:02 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:15:55:09 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
127.0.0.1 - - [26/Mar/2015:15:55:10 +0100] "GET /server-status?auto HTTP/1.1" 404 162 "-" "munin/2.0.6-4+deb7u2 (libwww-perl/6.04)" "-"
Cya
Cheech
Re: Debian 7 + Munin + Apache2 + NGINX 404 Apache2 status
Der apache gibt die Statusseite aber aus?
Code: Alles auswählen
www-browser http://127.0.0.1:7080/server-status
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
Re: Debian 7 + Munin + Apache2 + NGINX 404 Apache2 status
könnt das thema schliessen, war mir zu doof Nginx ist vom Server geflogen ..
THX
Cya
Cheech
THX
Cya
Cheech