lighttpd is an open-source web server optimized for speed-critical environments while remaining standards-compliant, secure and flexible. The low memory footprint (compared to other web servers), small CPU load and speed optimizations make lighttpd suitable for servers that are suffering load problems, or for serving static media separately from the dynamic content. lighttpd is free and open-source software and is distributed under the BSD license. It runs natively on Unix-like operating systems, as well as Microsoft Windows. lighttpd supports the FastCGI, SCGI and CGI interfaces to external programs, allowing web applications written in any programming language to be used with the server.
Prerequisites
- Modify the file
/etc/lighttpd/lighttpd.conf
or/etc/lighttpd2/lighttpd.conf
, depending on the version, with the following:
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_status", ## This needs to be added
)
- For Virtual Machines, install the Linux Agent.
Configuring the credentials
Configure the credentials in the directory /opt/opsramp/agent/conf/app.d/creds.yaml
lighttpd:
- name: lighttpd
user: <username>
pwd: <Password>
encoding-type: plain
labels:
key1: val1
key2: val2
Configuring the application
Virtual machine
Configure the application in the directory /opt/opsramp/agent/conf/app/discovery/auto-detection.yaml
- name: lighttpd
instance-checks:
service-check:
- lighttpd
process-check:
- lighttpd
port-check:
- 80
uri-check:
- "server-status?auto"
Docker environment
Configure the application in the directory /opt/opsramp/agent/conf/app/discovery/auto-container-detection.yaml
- name: lighttpd
container-checks:
image-check:
- lighttpd
port-check:
- 80
Kubernetes environment
Configure the application in config.yaml
- name: lighttpd
container-checks:
image-check:
- lighttpd
port-check:
- 80
Validate
Go to Resources under the Infrastructure tab to check if your resources are onboarded and the metrics are collected.
Metrics
OpsRamp Metric | Metric Display Name | Unit | Description |
---|---|---|---|
lighttpd_uptime | Uptime | minutes | Checks the uptime lighttpd service |
lighttpd_bytes_rate | Bytes Rate | bytes / second | Number of bytes transferred per second |
lighttpd_bytes_per_request | Bytes per request | bytes / request | Number of bytes transferred per request |
lighttpd_requests_rate | Requests Rate | Requests / second | Number of requests made per second |
lighttpd_total_accesses | Total Accesses | Total number of accesses made | |
lighttpd_total_kbytes | Total kBytes | kilobytes | Number of total KBs |
lighttpd_open_slots | Open Slots | Number of open slots | |
lighttpd_busy_servers | Busy Servers | Number of busy servers | |
lighttpd_idle_servers | Idle Servers | Number of idle servers | |
lighttpd_connections_state_start | Connection State Start | connection | Number of active connections in the state of initializing the read-idle timer |
lighttpd_connections_state_read_header | Connection State Read Header | connection | Number of active connections in the state of reading the http request header |
lighttpd_connections_state_handle_request | Connection State Handle Request | connection | Number of active connections in the state of handling the request internally |
lighttpd_connections_state_write_response | Connection State Write Response | connection | Number of active connections in the state of writing the response to the network |
lighttpd_connections_state_keep_alive | Connection State Keep Alive | connection | Number of idle connections |
lighttpd_requests_avg | Requests Average Since Start | Requests | Average number of requests since server started |
lighttpd_traffic_out_avg | Traffic Out Average Since Start | Average traffic out since server start | |
lighttpd_traffic_in_avg | Traffic In Average Since Start | Average traffic in since server start | |
lighttpd_connections_avg | Connections Average Since Start | Connection | Average number of connections since server start |
lighttpd_requests_avg_5sec | Requests Average Since Last 5 Sec | Requests | Average number of requests since last 5 seconds |
lighttpd_traffic_out_avg_5sec | Traffic Out Average Since Last 5 Sec | Average traffic out since last 5 seconds | |
lighttpd_traffic_in_avg_5sec | Traffic In Average Since Last 5 Sec | Average traffic in since last 5 seconds | |
lighttpd_connections_avg_5sec | Connections Average Since Last 5 Sec | connection | Average Number of connections since last 5 seconds |
lighttpd_memory_usage | Memory Used | bytes | Size of memory used by Lighttpd |
lighttpd_requests_abs | Requests Rate | Requests / second | Number of requests made per second |
lighttpd_traffic_out_abs | Traffic Out Rate | Rate of Traffic Out | |
lighttpd_traffic_in_abs | Traffic In Rate | Rate of Traffic In | |
lighttpd_connections_abs | Connections Rate | Connections rate | |
lighttpd_status_1xx | Status Code 1XX | Number of 1xx status codes generated per second | |
lighttpd_status_2xx | Status Code 2XX | Number of 2xx status codes generated per second | |
lighttpd_status_3xx | Status Code 3XX | Number of 3xx status codes generated per second | |
lighttpd_status_4xx | Status Code 4XX | Number of 4xx status codes generated per second | |
lighttpd_status_5xx | Status Code 5XX | Number of 5xx status codes generated per second |