[collectd] Problem with exec plugin output on 4.10.2

Martin B. Smith smithmb at ufl.edu
Tue Aug 21 20:16:20 CEST 2012


Hey all,

I'm trying to configure an exec plugin and have the results sent over 
the network plugin to my central collectd server. All instances are 
running 4.10.2.

Here's my configuration element:

<Plugin exec>
         Exec "operator" "/bin/cat" "/var/log/mailstats"
</Plugin>

Now, when run in debug mode, I see this:

Aug 21 14:09:48 smtp01 collectd[6126]: utils_cmd_putval: handle_putval 
(fh = 0xb7f134c0, buffer = PUTVAL 
smtp01.osg.ufl.edu/smtp-stats/kbytes_from N=264468);
Aug 21 14:09:48 smtp01 collectd[6126]: utils_cmd_putval: handle_putval 
(fh = 0xb7f134c0, buffer = PUTVAL smtp01.osg.ufl.edu/smtp-stats/msgs_to 
N=3604);
Aug 21 14:09:48 smtp01 collectd[6126]: utils_cmd_putval: handle_putval 
(fh = 0xb7f134c0, buffer = PUTVAL 
smtp01.osg.ufl.edu/smtp-stats/kbytes_to N=293286);
Aug 21 14:09:48 smtp01 collectd[6126]: utils_cmd_putval: handle_putval 
(fh = 0xb7f134c0, buffer = PUTVAL 
smtp01.osg.ufl.edu/smtp-stats/msgs_rejected N=704);
Aug 21 14:09:48 smtp01 collectd[6126]: utils_cmd_putval: handle_putval 
(fh = 0xb7f134c0, buffer = PUTVAL 
smtp01.osg.ufl.edu/smtp-stats/msgs_discarded N=57);
Aug 21 14:09:48 smtp01 collectd[6126]: exec plugin: exec_read_one: 
Waiting for `/bin/cat' to exit.
Aug 21 14:09:48 smtp01 collectd[6126]: exec plugin: Child 6381 exited 
with status 0.

Those buffers are the lines of the file in /var/log/mailstats (all 
pretty plain PUTVALs).

All other plugin data goes correctly to the central collectd server 
except this one. I don't normally do exec plugins on the remote systems 
-- usually I only run exec on the central collectd server.

On other Exec plugins, I see plugin_dispatch_values and "uc_insert: 
Added foo to the cache" after my exec'd process exits. But I don't see 
those for this particular configuration I'm debugging.

Any ideas for next steps to debug? I've turned up the debug log level on 
the central server and I never see anything about the plugin data I'm 
trying to get sent.

Thanks all,
-- 
Martin B. Smith, Systems Administrator
smithmb at ufl.edu - (352) 273-1374
UF Information Technology, CNS/Open Systems Group
University of Florida

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4906 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120821/0382591f/attachment.bin>


More information about the collectd mailing list