Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ ./build.sh
$ ./configure --prefix=$HOME/clct --enable-debug
$ make
$ make -j install

 

This will install collectd to $HOME/clct.

 

To run your new plugin:

Code Block
$ cd $HOME/clct

Edit etc/collectd.conf to include:

Code Block
LoadPlugin my_plugin
LoadPlugin logfile

<Plugin logfile>
        LogLevel debug
        File STDOUT
        Timestamp true
        PrintSeverity false
</Plugin>

<Plugin my_plugin>
    Option1 true
    Option2 “example”
</Plugin>

Extra ChallengeExtra bit of homework:

  1. Try to add a double plugin configuration option and read it in with: cf_util_get_double
  2. Write the configuration parameters to the collectd logfile

...