Nginx Plugins for Munin
Sep 29 2009 // Comments
Quick Howto: Install Munin plugins to monitor Nginx
Super quick howto configure munin to monitor nginx.
- download nginx plugins from Munin Exchange
- have nginx compiled with
--with-http_stub_status_module-- it's off by default, so you might need to recompile from source; compiling nginx is out-of-scope for this howto, you can read about it here - configure nginx to display /nginx_status
location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; }note: test the status page from localhost; you can simplytelnet localhost 80and typeGET /nginx_statusto see the results. If you don't get the nginx status page, then check that your nginx config is properly configured to listen on localhost port 80. - configure munin plugins with url, add:
[nginx*] env.url http://localhost/nginx_status - restart munin-node's
- enjoy nginx monitor graphs
Troubleshooting
If you get this: Name "main::port" used only once: possible typo at /etc/munin/plugins/nginx_request line 49. -- just remove the $port reference in the nginx_request plugin; far as I can tell it's never used; didn't seem important to me

I'm a Ruby and Rails programmer with tons of web development
experience with various technologies. I'm an active private pilot and
always looking for excuse to go flying.