<p>Greetings~</p>
<p> I haven't submitted a bug report yet as I'm not sure if this is a problem with my setup. I would like to monitor the system performance of multiple machines with a central collectd server. I was very happy to see that collectd supports encrypted network traffic. I setup the network plugin with encryption per the instructions on the collectd website. When I start collectd on the server, I see a normal startup. When I start a client, I see the following in /var/log/messages:</p>
<p>"collectd[PID]: Libgcrypt warning: missing initialization - please fix the application"</p>
<p> On the server, I see repeated entries reading:</p>
<p>"collectd[PID]: network plugin: Decrypting AES256 part failed with status -1.<br> collectd[PID]: network plugin: Decryption failed: Checksum mismatch."</p>
<p> I've tried this on RHEL 6.2 & CentOS 5.7 using the collectd 4.10.3-1 RPMs from the EPEL repos and a hand compiled version of collectd 5.0.2. I tried this with libgcrypt-1.4.4 on CentOS 5.7, libgcrypt-1.4.5 on RHEL 6.2, and I hand compiled libgcrypt-1.5.0 (latest) for both. All versions returned the same result. Configurations for client & server at the bottom of the messages.</p>
<p> Documentation for gcrypt here: <a href="http://gnupg.org/documentation/manuals/gcrypt/Initializing-the-library.html#Initializing-the-library">http://gnupg.org/documentation/manuals/gcrypt/Initializing-the-library.html#Initializing-the-library</a> says that gcrypt must be initialized with "gcry_check_version" before it can be used. The AIDE bugtracker has some discussion about this same issue: <a href="http://sourceforge.net/tracker/?func=detail&aid=2763470&group_id=86976&atid=581579">http://sourceforge.net/tracker/?func=detail&aid=2763470&group_id=86976&atid=581579</a> . I grep'd through the source but was unable to find such a line. I did some minimal testing to add such a function to network.c to see if I could force an initialization but not knowing the source very well, I was unable to find the spot in the control flow where this should go. My understanding from the gnupg documentation is that a gcry_version_check() call is requried before any libgcrypt work is done and without delving deeper into collectd's code, I don't know where that first call is made. I'm hoping someone with a deeper, current understanding of collectd either knows where this should go or knows what mistake I've made to produce these errors.</p>
<p>#Client /etc/collectd.conf:<br>#-----------</p>
<p>LoadPlugin network<br><Plugin network><br> <Server "192.168.1.2"><br> SecurityLevel "Encrypt"<br> Username "user0"<br> Password "password0"<br> </Server><br>
</Plugin></p>
<p>#---------------<br>#Server /etc/collectd.conf:<br>#--------------</p>
<p><Plugin network><br> <Listen "192.168.1.2"><br> SecurityLevel "Encrypt"<br> AuthFile "/etc/collectd_authfile.conf"<br> Interface "eth0"<br> </Listen><br>
</Plugin></p>
<p>#----------------<br>#Server /etc/collectd_authfile.conf:<br>#----------------</p>
<p>user0: password0</p>
<p>#----------------<br></p>