[collectd] collectd Digest, Vol 83, Issue 11

Gerrie Roos groos at xiplink.com
Wed Aug 22 15:21:17 CEST 2012


Hi Martin

- Have you tried using cat with output buffering disabled (-u option on
FreeBSD)?
- Does this happen immediately or do you actually get some data first?  How
often does it happen?

Gerrie


Message: 2
Date: Tue, 21 Aug 2012 14:16:20 -0400
From: "Martin B. Smith" <smithmb at ufl.edu>
To: collectd at verplant.org
Subject: [collectd] Problem with exec plugin output on 4.10.2
Message-ID: <5033D074.2050604 at ufl.edu>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

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





More information about the collectd mailing list