OpenWrt Forum Archive

Topic: Collectd packages

The content of this topic has been archived on 14 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi All,

Thank you all for your work !

I'd like to setup collectd to send data to my server.

My server is used by other equipments with security options:
- SecurityLevel Encrypt
- Username "usename"
- Password "password"

For security reason, I would like to keep my current settings ;-)

But when I start collectd on my openwrt box, I get this message:

network plugin: Option `SecurityLevel' is not allowed here.
network plugin: Option `Username' is not allowed here.
network plugin: Option `Password' is not allowed here.

So I guess that network plugin has compiled without libgcrypt support as described here : https://www.polibyte.com/blog/collectd_encryption_error

I'd like to know if it's possible to include this lib in network plugin or how to create an environment to compile it myself.

Thank you in advance.

Best

the default collectd package for Openwrt is indeed compiled "without-libcrypt" parameter given to configure.
https://github.com/openwrt/packages/blo … efile#L183

If you want support for that, you need to setup an Openwrt buildroot environment and compile collectd for yourself with that option enabled. (but I have no idea if it is possible to successfully compile collectd using that library. I guess that the support is disabled mainly for space constraint reasons, but there may be something else, too.)

Checking out and building Openwrt is rather easy. Basically you just need a Linux environment (e.g. setup Linux into VirtualBox) and to checkout the Openwrt sources. Wiki gives good advice:
https://wiki.openwrt.org/about/toolchain
https://wiki.openwrt.org/doc/howto/buildroot.exigence

I have successfully compiled collected the --with-libgcrypt option for both Kirkwood and OXNAS platforms.

The discussion might have continued from here.