[In Development] Monitoring Lighttpd

Configure the Server Density agent to monitor your lighttpd server to:

• Collect important metrics, such as performance, connections and utilisation
• Identify overall server slowdowns caused by the server

Note: This plugin is still in development and is not yet available to install. We will add new plugins to our release notes.

Monitored metrics Lighttpd1

  • lighttpd.net.bytes_per_s
  • lighttpd.net.request_per_s
  • lighttpd.performance.busy_servers
  • lighttpd.performance.idle_server
  • lighttpd.performance.uptime

Monitored metrics Lighttpd2

  • lighttpd.connections.state_handle_request
  • lighttpd.connections.state_keep_alive
  • lighttpd.connections.state_read_header
  • lighttpd.connections.state_start
  • lighttpd.connections.state_write_response
  • lighttpd.net.bytes_in
  • lighttpd.net.bytes_in_avg
  • lighttpd.net.bytes_in_avg_5sec
  • lighttpd.net.bytes_out
  • lighttpd.net.bytes_out_avg
  • lighttpd.net.bytes_out_avg_5sec
  • lighttpd.net.connections_avg
  • lighttpd.net.connections_avg_5sec
  • lighttpd.net.connections_total
  • lighttpd.net.requests_avg
  • lighttpd.net.requests_avg_5sec
  • lighttpd.net.requests_total
  • lighttpd.performance.memory_usage
  • lighttpd.performance.uptime
  • lighttpd.response.status_1xx
  • lighttpd.response.status_2xx
  • lighttpd.response.status_3xx
  • lighttpd.response.status_4xx
  • lighttpd.response.status_5xx

Configuring the agent to monitor Lighttpd

1. To monitoring lighttpd, ensure you have mod_status enabled in /etc/lighttpd/lighttpd.conf and have configured a status URL. See the lighttpd docs for more info. Restart lighttpd after any changes.

2. Configure /etc/sd-agent/conf.d/lighttpd.yaml

init_config:

instances:

(for lighttpd1)
- lighttpd_status_url: http://localhost/server-status?auto

(for lighttpd2)
- lighttpd_status_url: http://localhost/server-status?format=plain

3. Restart the agent

sudo /etc/init.d/sd-agent restart

Verifying the configuration
Execute info to verify the configuration with the following:

sudo /etc/init.d/sd-agent info 

If the agent has been configured correctly you’ll see an output such as:

lighttpd
-----
  - instance #0 [OK]
  - Collected 27 metrics & 0 events

Configuring graphs

Click the name of your server from the Devices list in your Server Density account then go to the Metrics tab. Click the + Graph button on the right then choose the lighttpd metrics to display the graphs. The metrics will also be available to select when building dashboard graphs.

Further reading

We have a detailed blog post about how to monitor Lighthttpd.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.