[collectd] perl plugin question: perl_read: Assertion `my_perl != perl_threads->head->interp' failed.

Andreas Schuldei andreas at schuldei.org
Thu Dec 25 20:30:37 CET 2014


I reduced my plugin to this:

package Collectd::Plugins::Biosmart;
use strict;
use warnings;
use Collectd qw( :all );
my $host = "192.168.2.53";
plugin_register( TYPE_READ, 'Biosmart', 'biosmart_read' );

sub biosmart_read {
    my %v = (
        time     => time(),
        interval => 60,
        host     => $host,
        plugin   => "biosmart",
    );

    my $content;

    my $line_number = 0;
    my @content_lines = split( /\n/, $content );
    foreach (@content_lines) {
        my $line = $_;

        $v{'type'}          = "absolute";
        $v{'type_instance'} = $line_number;
        $v{'values'}        = [0];            # default value
        plugin_dispatch_values( \%v );
    }
    return 1;
}


And i get this:

sudo collectd -T
collectd: perl.c:1952: perl_read: Assertion `my_perl !=
perl_threads->head->interp' failed.

Obviously I stripped out most of the functionality, but the error is the
same for the complete plugin.

How can i solve this?

this is the config file:

sudo egrep -v '^\s*#|^$' /etc/collectd/collectd.conf
FQDNLookup true
WriteQueueLimitHigh 1000000
WriteQueueLimitLow   800000
LoadPlugin syslog
<Plugin syslog>
LogLevel info
</Plugin>
<LoadPlugin perl>
Globals true
</LoadPlugin>
LoadPlugin rrdtool
<Plugin rrdtool>
DataDir "/var/lib/collectd/rrd"
</Plugin>
<Plugin perl>
           BaseName "Collectd::Plugins"
           LoadPlugin "Biosmart"
           <Plugin Biosmart>
           </Plugin>
</Plugin>
<Include "/etc/collectd/collectd.conf.d">
Filter "*.conf"
</Include>

collectd-core, version 5.4.1-6

Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages collectd-core depends on:
ii  debconf [debconf-2.0]  1.5.55
ii  libc6                  2.19-13
ii  libltdl7               2.4.2-1.11

Versions of packages collectd-core recommends:
ii  perl     5.20.1-3
ii  rrdtool  1.4.8-1.2

Versions of packages collectd-core suggests:
pn  apache2                                             <none>
pn  apcupsd                                             <none>
pn  bind9                                               <none>
pn  collectd-dev                                        <none>
ii  default-jre-headless                                2:1.7-52
pn  hddtemp                                             <none>
pn  httpd-cgi                                           <none>
ii  iptables                                            1.4.21-2+b1
pn  ipvsadm                                             <none>
pn  libconfig-general-perl                              <none>
ii  libcurl3-gnutls                                     7.38.0-3
ii  libdbi1                                             0.9.0-4
ii  libesmtp6                                           1.0.6-4
ii  libgcrypt20                                         1.6.2-4+b1
ii  libgdk-pixbuf2.0-0                                  2.31.1-2+b1
ii  libglib2.0-0                                        2.42.1-1
ii  libhtml-parser-perl                                 3.71-1+b3
ii  liblvm2app2.2                                       2.02.111-2
ii  libmemcached11                                      1.0.18-4
ii  libmnl0                                             1.0.3-5
ii  libmodbus5                                          3.0.6-1
ii  libmysqlclient18                                    5.5.40-1
ii  libnotify4                                          0.7.6-2
ii  libnspr4                                            2:4.10.7-1
ii  libnspr4-0d                                         2:4.10.7-1
ii  libnss3                                             2:3.17.2-1
ii  libnss3-1d                                          2:3.17.2-1
ii  libopenipmi0                                        2.0.16-1.4
ii  liboping0                                           1.7.0-1
ii  libowcapi-2.9-8                                     2.9p8-6
ii  libpcap0.8                                          1.6.2-2
ii  libperl5.20                                         5.20.1-3
ii  libpq5                                              9.4.0-1
ii  libprotobuf-c1                                      1.0.2-1
ii  libpython2.7                                        2.7.8-11
ii  librabbitmq1                                        0.5.2-2
ii  libregexp-common-perl                               2013031301-1
ii  librrd4                                             1.4.8-1.2
pn  librrds-perl                                        <none>
ii  libsensors4                                         1:3.3.5-2
ii  libsnmp30                                           5.7.2.1~dfsg-7
ii  libssl1.0.0                                         1.0.1j-1
ii  libtokyotyrant3                                     1.1.40-4.2
ii  libupsclient4                                       2.7.2-1+b3
ii  liburi-perl                                         1.64-1
ii  libvirt0                                            1.2.9-6
ii  libxml2                                             2.9.1+dfsg1-4
ii  libyajl2                                            2.1.0-2
pn  lm-sensors                                          <none>
pn  mbmon                                               <none>
pn  memcached                                           <none>
pn  mysql-server                                        <none>
pn  nginx                                               <none>
ii  notification-daemon                                 0.7.6-2
pn  nut                                                 <none>
pn  olsrd                                               <none>
ii  openntpd [time-daemon]                              20080406p-10
pn  openvpn                                             <none>
ii  oracle-java7-jre-dummy-provides [default-jre-headl
 0.4-1~0.0.0.7.35cace4.8
pn  pdns-server                                         <none>
pn  postgresql                                          <none>
ii  zlib1g                                              1:1.2.8.dfsg-2+b1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20141225/0bd3d689/attachment.html>


More information about the collectd mailing list