[collectd] Old collectd-perl(5) in 5.x ?

Sergey a_s_y at sama.ru
Wed Dec 14 10:26:58 CET 2011


Hello.

I found in man page:

       A very simple read function might look like:

         sub foobar_read
         {
           my $vl = { plugin => 'foobar' };
           $vl->{'values'} = [ rand(42) ];
           plugin_dispatch_values ('gauge', $vl);
           return 1;
         }

It not works with error:
collectd: perl: Usage: Collectd::plugin_dispatch_values(values)

It works after changed plugin_dispatch_values ('gauge', $vl) to

    $vl->{'type'} = 'bytes';
    plugin_dispatch_values ($vl);

-- 
Regards,
Sergey



More information about the collectd mailing list