Online Training
Q4 2024

Nov 19 to Dec 10

11.00 AM EST: USA, UK, Canada, Mexico and Europe

06.00 AM GMT: MiddleEast, Asia and Australia

Register Now

Monitor your Lighttpd web server metrics.

Integrate with Site24x7 and keep an eye on Lighttpd's usage, uptime and more.

Start 30-day free trial Try now, sign up in 30 seconds

A web server, Lighttpd is known for its smaller size, speed and scalability. Lighttpd monitoring is critical to reduce both lag and downtime, and at the same time troubleshoot efficiently when these issues occur.

This document details how to configure the Lighttpd plugin and the monitoring metrics for providing in-depth visibility into the performance, availability, and usage stats of Lighttpd web servers.

Lighttpd web server monitoring metrics:

Site24x7 plugins offer insightful visualizations and timely alerts to ensure continued functioning of your Lighttpd web server.

Various out-of-the-box metrics we support are:

Accesses

The total number of requests handled since start of the web server

Traffic

It is the overall outgoing traffic in KB handled by the Lighttpd web server

Uptime

The amount of time (in seconds) since the server startup.

Busy servers

The busy_servers is the number of active connection per server

Idle servers

idle_servers is the number of idle connections per server

How it works?

  • Log-in to your Site24x7 account. Sign up here if you don't have one.
  • Download and install the latest version of Site24x7 Linux agent
  • Install the Lighttpd plugin extension
  • The agent will execute the Lighttpd plugin and push the data to the Site24x7 server

Prerequisites:

  • Open the Lighttpd configuration file (/etc/lighttpd/lighttpd.conf) and add the mod_status to server.modules if not present
  • Add status url if not present already
    status.status-url="/server-status"
  • Restart the Lighttpd server

Lighttpd plugin installation:

  • Create a directory with the name "lighttpd", under Site24x7 Linux agent plugin directory - /opt/site24x7/monagent/plugins/
    sudo mkdir lighttpd
  • Download the "lighttpd.py" from our GitHub repository and place it under the "lighttpd" directory
    sudo wget https://raw.githubusercontent.com/site24x7/plugins/master/lighttpd/lighttpd.py
  • The default python path given in the plugin script is #!/usr/bin/python. If you wish to provide an alternate python path, replace the existing one preceded by the shebang character "#!".
  • By default, the Lighttpd plugin uses localhost:80 with no username, password and proxy for monitoring Lighttpd servers. To change the configuration, edit the values of URL, USERNAME and PASSWORD in the lighttpd.py file
  • The server agent will report stats on the performance of Lighttpd under the Plugins tab in the Site24x7 web client. In case the plugin is not listed in the Site24x7 web client, restart the agent

Monitoring additional metrics:

  • To monitor additional metrics, edit the "lighttpd.py" file and add the new metrics that need monitoring
  • Increment the plugin version value in the file "lighttpd.py" to view the newly added metrics (For e.g., change the default plugin version from PLUGIN_VERSION = "1" to "PLUGIN_VERSION = "2")

Related plugins:

  • ActiveMQ plugin - Monitor performance metrics of your Apache ActiveMQ instances
  • MongoDB plugin - Monitor performance metrics of your MongoDB databases
  • Memcached plugin - Analyze performance of your Memcached server
  • Nagios plugin - Execute thousands of Nagios plugins in Site24x7 without the need of running a Nagios server
  • Out-of-the-box plugins - Monitor your entire app stack with our extensive list of integrations
  • Create custom plugins - Create custom Linux and Windows plugins and monitor custom attributes