January 15, 2017

Longview with Varnish

Linode's Longview service gives you a great insight into how welll your server is running. The standard automatic install failes when trying to set Nginx monitoring up if you have Varnish or something else listening on port 80. Thankfully there is a simple fix.

When promted choose no to the automated setup.

Add the following to your Nginx site configuration:

server {
location /nginx_status {
    stub_status on;
    deny all;

The above code will open a nginx status page (which Longview users to get its information) on port 8090 which only listens on the loop back address.

To finish simply configure longview to use the correct URL using the file below:

nano /etc/linode/longview.d/Nginx.conf

The file should look like this:

Lastly restart longview:

service longview restart

If it works you should see data begin to be gathered and displayed like below:

Linode finished

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket
Comments powered by Disqus