Project

General

Profile

Howto Munin » History » Version 8

Version 7 (icy, 2010-06-15 19:03) → Version 8/10 (icy, 2011-04-30 18:07)

h1. Howto Munin

h2. Installation

Download this file: attachment:lighttpd2_munin.py and save it as "lighttpd" in the directory where all
your munin plugins reside (usually this is /usr/share/munin/plugins/) and make it executeable (chmod +x).

Then issue any of the following commands (with appropriate paths) to enable the graphs:
<pre>
$ ln -s /usr/share/munin/plugins/lighttpd2 /etc/munin/plugins/lighttpd2_requests /usr/share/munin/plugins/lighttpd /etc/munin/plugins/lighttpd_requests
$ ln -s /usr/share/munin/plugins/lighttpd2 /etc/munin/plugins/lighttpd2_traffic /usr/share/munin/plugins/lighttpd /etc/munin/plugins/lighttpd_traffic
$ ln -s /usr/share/munin/plugins/lighttpd2 /etc/munin/plugins/lighttpd2_statuscodes /usr/share/munin/plugins/lighttpd /etc/munin/plugins/lighttpd_statuscodes
$ ln -s /usr/share/munin/plugins/lighttpd2 /etc/munin/plugins/lighttpd2_connections /usr/share/munin/plugins/lighttpd /etc/munin/plugins/lighttpd_connections
</pre>

You need to enable [[mod_status]] in your config. Example config:

<pre>
if req.path == "/status" { status.info; }
</pre>

Now restart your munin-node service and wait for the graphs to appear.

If you use a different URL for your status page, you'll need to put the following snippet
in your munin node config file (usually /etc/munin/plugin-conf.d/munin-node):

<pre>
[lighttpd_*]
env.statusurl http://ip/other_status?format=plain http://ip/other_status
</pre>

h2. Screenshots

!lighttpd_requests-day.png!
!lighttpd_traffic-day.png!
!lighttpd_statuscodes-day.png!
!lighttpd_connections-day.png!