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:
The total number of requests handled since start of the web server
It is the overall outgoing traffic in KB handled by the Lighttpd web server
The amount of time (in seconds) since the server startup.
The busy_servers is the number of active connection per server
idle_servers is the number of idle connections per server
How it works?
Lighttpd plugin installation:
- Create a directory with the name "lighttpd", under Site24x7 Linux agent plugin directory - /opt/site24x7/monagent/plugins/
- Download the "lighttpd.py" from our GitHub repository and place it under the "lighttpd" directory
- 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")
- 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