Server Density Blog

Interesting devops tech stuff

Pssst… Server Density v2 is coming soon!

Nginx server monitoring – sd-agent 1.3.0

Written by David Mytton

nginx-logo

We have just released version 1.3.0 of sd-agent for our server monitoring product, Server Density. This includes a number of minor bug fixes and status monitoring support for the Nginx web server.

This new metric is available immediately to paid and trial accounts and allows you to monitor the number of requests per second and current connections. Once you have downloaded the agent update (see below), you can follow the instructions in the documentation to set up the monitoring.

Agent update

Run the following command from the sd-agent directory to update your agent:

python agent.py update

You will then need to add an additional line to your config.cfg file to enable the monitoring:

nginx_status_url: http://www.example.com/nginx_status

See the documentation for what to set this to.

Anonymous statistics

For some time the agent has included code to post back a number of statistics about your server each time you launch the agent. This data is currently being discarded and not stored but we intend to start recording the data that is posted to help us with our development and generate summary reports e.g. most common Python versions.

The data that is reported back is agent version, machine type, processor type, OS, OS version and Python version. Data will be anonymised before being stored.

Whilst we would appreciate it if you keep this enabled, this version of the agent includes a new config option to allow you to disable this reporting. Enabled by default, just add the following line to your config to disable:

report_anon_stats: no

Again, no data is currently stored and we will post a blog entry when we intend to start keeping the data sent to us.

If you have any questions or problems, please get in touch.

Enjoy this post? You may also like Growing an ops team from 1 founder