Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://127.0.0.1/nginx_status
- server {
- listen 127.0.0.1;
- server_name localhost;
- location /nginx_status {
- stub_status on;
- access_log off;
- allow 127.0.0.1;
- deny all;
- }
- }
- munindoc nginx_request
- cd /etc/munin/plugins
- munin-run PLUGINNAME
- grep '/' PLUGINNAME
- [nginx*]
- env.url http://localhost/nginx_status
- nginx_status
- nginx-status
- nginx -V 2>&1 | grep -o with-http_stub_status_module
- with-http_stub_status_module
- wget http://localhost/nginx_status
- location /nginx_status {
- stub_status on;
- access_log off;
- error_log /var/log/nginx/status.error.log;
- allow 127.0.0.1;
- deny all;
- }
- [error] 2203#0: *1442 access forbidden by rule, client: ::1, server: localhost, request: "GET /nginx_status HTTP/1.1", host: "localhost"
- server {
- listen 80;
- listen [::]:80;
- server_name localhost;
- location /nginx_status {
- stub_status on;
- access_log off;
- allow 127.0.0.1;
- allow ::1;
- deny all;
- }
- }
- munin-run nginx_status
- apt install libwww-perl
- yum install perl-libwww-perl
- total.value 1
- reading.value 0
- writing.value 1
- waiting.value 0
Add Comment
Please, Sign In to add comment