...
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:
- Try to add a double plugin configuration option and read it in with: cf_util_get_double
- Write the configuration parameters to the collectd logfile
...