how to make ServerPilot control panel work with Longview?

I am using the ServerPilot https://serverpilot.io/ control panel for WordPress hosting. My sites are very fast but ServerPilot free version does not have metrics. How do I get Longview working with ServerPilot?

2 Replies

@athew have you sort out this in some way?

Don't run the auto install script, setup Longview manually.

I've written a blog post on this - http://websistent.com/configure-linode- … rverpilot/">http://websistent.com/configure-linode-longview-on-serverpilot/

Create /etc/apache-sp/conf.d/status.conf with the following contents:

 <ifmodule mod_status.c="">ExtendedStatus On
    <location server-status=""><ifmodule mod_rewrite.c="">RewriteEngine Off</ifmodule> 
    SetHandler server-status
    Require ip 127.0.0.1</location></ifmodule> 

Do a configtest and if successful restart Apache:

sudo /opt/sp/apache/bin/apachectl -t
sudo service apache-sp restart

For Nginx create /etc/nginx-sp/conf.d/status.conf with the following contents:

server {
    listen 127.0.0.1:80;
    server_name 127.0.0.1;
    location /nginx_status {
        stub_status on;
        allow 127.0.0.1;
        deny all;
    }
}

Do a configtest and if successful reload Nginx:

sudo service nginx configtest
sudo service nginx reload

Finally add the status URLs of Apache and Nginx to Longview's config file:

sudo bash -c 'echo "location http://127.0.0.1:81/server-status?auto" > /etc/linode/longview.d/Apache.conf'
sudo bash -c 'echo "location http://127.0.0.1/nginx_status" > /etc/linode/longview.d/Nginx.conf'

Restart Longview:

sudo service longview restart

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct