[collectd] perl script error

Francesco Sordillo f.sordillo at cineca.it
Fri Jun 5 13:17:54 CEST 2009


Hi to all.

I wrote a perl script included in collectd with perl plugin. When I
start collectd I get this output in log file (in debug mode):

------------------
[2009-06-05 13:12:52] perl: Initializing Perl interpreter...
[2009-06-05 13:12:52] perl: argv[0] = ""
[2009-06-05 13:12:52] perl: argv[1] = "-MCollectd"
[2009-06-05 13:12:52] perl: argv[2] = "-e"
[2009-06-05 13:12:52] perl: argv[3] = "1"
[2009-06-05 13:12:52] perl: argv[4] = "-I/opt/collectd/lib/collectd"
[2009-06-05 13:12:52] perl: perl_config: loading perl plugin "test"
[2009-06-05 13:12:52] perl: Collectd::plugin_register: type = "255", name = "test", data = "ARRAY(0x6a0060)"
[2009-06-05 13:12:52] perl: Collectd::plugin_register_data_set: type = "test", dataset = "ARRAY(0x6a0060)"
[2009-06-05 13:12:52] perl: pplugin_register_data_set: DS.name = "prova", DS.type = 1, DS.min = 0.000000, DS.max = 0.000000
[2009-06-05 13:12:52] Replacing DS `test' with another version.
[2009-06-05 13:12:52] perl: Collectd::plugin_register: type = "0", name = "test", data = "init_test"
[2009-06-05 13:12:52] perl: Collectd::plugin_register: type = "1", name = "test", data = "read_test"
[2009-06-05 13:12:52] perl: Collectd::plugin_register: type = "2", name = "test", data = "write_test"
[2009-06-05 13:12:52] perl: Collectd::plugin_register: type = "3", name = "test", data = "shutdown_test"
[...]
[2009-06-05 13:12:52] Creating PCAP object..
-------------------

After the last line, I get a crash but without more info.
I installed Net::Pcap module but I get the same error.

My perl version is 5.8.8 and I compiled collectd with CFLAGS=-DLT_LAZY_OR_NOW='RTLD_LAZY|RTLD_GLOBAL' option.

Anyone can help me, please?

Thanks.
Francesco.




More information about the collectd mailing list