HomeLighttpd Monitoring
Lighttpd Monitoring

lighttpd is a light weighted web server compare to other web servers featuring a small memory footprint compared to other web-servers, effective management of the CPU-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more) lighttpd is the perfect solution for every server that is suffering load problems. Nodelizer helps you to monitor following metric about nginx installed on your server.

Metrics collected by Lighttpd Integration
Metric
– Description
Uptime
– The amount of time the server has been running.
Total Accesses
– The number of handled requests
Requests Per Sec
– The average number of handled requests per second.
Total Traffic
– The overall outgoing traffic.
Bytes Per Sec
– The average number of bytes served per second.
Busy Servers
– The number of currently active connections
Idle Servers
– The number of idle connections
Configuring

Note : rptmonitor parses the Lighttpd mod_status output

  1. Load the mod_status module.

    • Check your lighttpd configuration file (often at /etc/lighttpd/lighttpd.conf – but it can be in many other locations so you may want to search for lighttpd.conf), and uncomment following line ( In server.modules ) :

      # “mod_status”,
  2. Enable lighttpd status page.

    • Add / uncomment following line in your lighttpd.conf file :

      status.status-url = “/server-status”
  3. Restart the Lighttpd Web Server after saving changes.

  4. Check URL in your browser or with curl/wget :

  5. Edit the agent’s config.cfg file :

    • Uncomment the line containing ‘lighttpd_status_url:‘ and add the URL.

      • lighttpd_status_url: http://127.0.0.1:80/server-status?auto

        Note : “?auto” at the end is required in the URL (without quote).

      • Set the correct port if lighttpd is configured on different port.
    • Provide username(lighttpd_usrnm) & password(lighttpd_pswd) if the status URL is protected. Remove # symbol to uncomment the lines.

  6. Restart rptmonitor :

    • For deb/rpm package supported Linux distros :

      sudo /etc/init.d/rptmonitor restart
    • For openSUSE(11.4+) with systemd :

      sudo systemctl restart rptmonitor.service
    • For other Linux distro, FreeBSD8+, Mac OS X+ :

      sudo python /usr/local/bin/rptmonitor/monitor.py restart