#869 new enhancement

New Lighttpd 1.4.x plugin

Reported by: yonas Owned by: nobody
Priority: normal Milestone: Munin 2.0.0
Component: plugins Version: 1.4.3
Severity: normal Keywords:
Cc:

Description

I've made a few changes to
http://github.com/rtucker/munin-lighttpd/blob/master/lighttpd

so that suggest and autoconf work. Please include into HEAD.



Your config should look like:

[lighttpd_*]
# Remember to put "?auto" at the end of the URL
env.statusurl http://www.example.com/server-status?auto

Lighttpd configuration:

server.modules = ( ..., "mod_status", ... )
status.status-url = "/server-status"

Reference: http://redmine.lighttpd.net/wiki/1/Docs:ModStatus

Attachments (1)

lighttpd_ (3.7 KB) - added by yonas at 2010-02-21T01:01:56+01:00.
Add support for Basic and Digest authentication

Download all attachments as: .zip

Change History (5)

comment:1 Changed at 2010-02-19T11:05:17+01:00 by yonas

Lighttpd can also output statistics using status.statistics-url:

  fastcgi.active-requests: 0
  fastcgi.backend.fcgi-php.0.connected: 10127
  fastcgi.backend.fcgi-php.0.died: 0
  fastcgi.backend.fcgi-php.0.disabled: 0
  fastcgi.backend.fcgi-php.0.load: 0
  fastcgi.backend.fcgi-php.0.overloaded: 0
  fastcgi.backend.fcgi-php.1.connected: 93855
  fastcgi.backend.fcgi-php.1.died: 0
  fastcgi.backend.fcgi-php.1.disabled: 0
  fastcgi.backend.fcgi-php.1.load: 0
  fastcgi.backend.fcgi-php.1.overloaded: 0
  fastcgi.backend.fcgi-php.load: 1
  fastcgi.requests: 399355


I'll add this functionality soon.

comment:2 Changed at 2010-02-19T13:01:49+01:00 by yonas

I'm getting some noise in munin-update.log:

2010/02/19 06:55:01 [WARNING] 1 lines had errors while 5 lines were correct in data from 'config lighttpd_idleservers' on myserver.com/127.0.0.1/4949
2010/02/19 06:55:01 [WARNING] 1 lines had errors while 8 lines were correct in data from 'config lighttpd_kbytes' on myserver.com/127.0.0.1/4949
2010/02/19 06:55:03 [WARNING] 1 lines had errors while 5 lines were correct in data from 'config lighttpd_uptime' on myserver.com/127.0.0.1/4949
2010/02/19 06:55:03 [WARNING] 1 lines had errors while 5 lines were correct in data from 'config lighttpd_busyservers' on myserver.com/127.0.0.1/4949
2010/02/19 06:55:04 [WARNING] 1 lines had errors while 7 lines were correct in data from 'config lighttpd_accesses' on myserver.com/127.0.0.1/4949



It's weird because munin-run lighttpd_xxx works fine:

root # munin-run lighttpd_idleservers
data.value  127

root # 

Changed at 2010-02-21T01:01:56+01:00 by yonas

Add support for Basic and Digest authentication

comment:3 Changed at 2010-02-21T01:06:37+01:00 by yonas

This is how you can use HTTP BASIC or HTTP DIGEST authentication.


[lighttpd_*]

# Remember to put ?auto at the end of your URL
env.statusurl http://munin.kudoscoins.com/server-status?auto

# To enable authentication, set env.auth_type to either basic or digest
# The default is no authentication
env.auth_type digest

# env.auth_realm should be the realm that you specified in lighttpd
env.auth_realm Munin

env.auth_user username
env.auth_password password

comment:4 Changed at 2010-02-22T16:23:51+01:00 by yonas

The bug mentioned on "19-02-2010 13:01:49" is fixed in the latest version of http://munin.projects.linpro.no/attachment/ticket/869/lighttpd_

Note: See TracTickets for help on using tickets.