Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the default collectd pluggindir?

Tags:

collectd

Where does Collectd store its plugins by default? I am missing a perl plugin and I want to make sure its not because the installation was hosed.

like image 645
Usman Ismail Avatar asked Jan 16 '23 19:01

Usman Ismail


1 Answers

The plugin location is configured using the directive PluginDir in collectd.conf. The default (compiled in) location can be queried using the builtin help:

$ collectd -h
Usage: collectd [OPTIONS]
[...]
Builtin defaults:
[...]
Plugin directory  /usr/lib/collectd
[...]

This is for the plugins written in C. You are referring to a perl plugin, so this applies to perl.so, which is the perl interpreter plugin itself. If you were asking about the location of the perl (*.pm) files, then it's your perl policies that apply (i.e. @INC). If you need to force the standard perl module location, you can use the IncludeDir directive inside your <Plugin perl> block

like image 109
faxmodem Avatar answered May 23 '23 03:05

faxmodem