~ubuntu-branches/ubuntu/oneiric/collectd/oneiric

« back to all changes in this revision

Viewing changes to debian/README.Debian

  • Committer: Bazaar Package Importer
  • Author(s): Morten Kjeldgaard
  • Date: 2008-11-18 15:54:20 UTC
  • mfrom: (1.1.5 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20081118155420-sc2mxv2pebafkmon
Tags: 4.4.2-2ubuntu1
* Merge from Debian unstable (LP: #298828). Remaining Ubuntu changes:
* Add ubuntu_in6-glibc28.dpatch patch, fix FTBFS.
* Add ubuntu_hardening.dpatch patch, fix FTBFS.
* Add ubuntu_perl.c.dpatch, fix FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  "/var/lib/collectd/" and generate a static HTML file and a directory
29
29
  containing several PNG files which are graphs of the RRD files found.
30
30
 
 
31
  This script was intended to be used with version 3 of collectd but still
 
32
  seems to be in use by some people. To get it working with version 4, you
 
33
  have to call it once for each subdirectory containing RRD files. A sample
 
34
  wrapper might look like this:
 
35
 
 
36
    for dir in /var/lib/collectd/rrd/$hostname/*; do
 
37
        out_dir=`basename "$dir"`
 
38
        mkdir -p $out_dir
 
39
        ( cd $out_dir && collectd2html.pl --data-dir="$dir" )
 
40
    done
 
41
 
31
42
- collection.cgi: Sample CGI script that creates graphs on the fly. The Perl
32
43
  modules "RRDs" (package librrds-perl), "URI:Escape" (package liburi-perl),
33
44
  "HTML::Entities" (package libhtml-parser-perl) and a CGI capable web server
41
52
  is installed to /etc/collectd/collection.conf. You should not need to change
42
53
  anything there.
43
54
 
 
55
- collection3: A graphing front-end for the RRD files created by and filled
 
56
  with collectd. See /usr/share/doc/collectd/examples/collection3/README for
 
57
  details. This is a successor for collection.cgi.
 
58
 
44
59
Building your own plugins:
45
60
--------------------------
46
61
 
56
71
  collectd-dev package and use /usr/share/doc/collectd-dev/examples/myplugin.c
57
72
  as a starting point (Note: This is already a working example, though it does
58
73
  not collect any useful data).
59
 
  
 
74
 
60
75
  The resulting file can be compiled as follows:
61
76
 
62
 
    gcc -shared -fPIC -o myplugin.so myplugin.c
 
77
    gcc -DHAVE_CONFIG_H -shared -fPIC -o myplugin.so myplugin.c
63
78
 
64
79
  Copy myplugin.so to /usr/lib/collectd and add the following line to your
65
80
  collectd config file: