[collectd] Help w/ exec plugin
Florian Forster
octo at verplant.org
Tue Jul 13 13:15:58 CEST 2010
Hi Richard,
On Mon, Jun 28, 2010 at 09:34:18AM +1200, Richard Hanschu wrote:
> I have created a perl script to collect data from a embedded webserver
> on a power meter which creates the following output every 60 seconds:
>
> tridiumJace/snmp/power-COE2 interval=60 N:468.73
this looks basically okay. Using the plugin "snmp" when in fact the
script is executed via the "exec" plugin is kind of confusing, but
"legal".
> [2010-06-28 08:42:37] exec plugin: Prepending `PUTVAL' to this line: tridiumJace/snmp/power-COE2 interval=60 N:452.65
Please note that with collectd 5 the compatibility code you rely on will
be removed. To be save for the future please change the output to:
PUTVAL tridiumJace/snmp/power-COE2 interval=60 N:468.73
> If I up the script interval to 1 sec, then the extra data will create
> the following type of entries in the collectd log when too many data
> points are feed to collectd for it's 10 min collection interval:
I have no idea what you're trying to do there. If "interval=60" is given
in the line printed by your script, then the created RRD files will have
a 60 second step – no matter what the global "interval" setting is set
to.
If you submit values more often than specified in the "interval="
option, you'll waste resources but other than that this won't have bad
consequences. If you submit values less often, you may run into
problems, depending on heartbeat of the RRD file.
> [2010-06-28 08:42:37] uc_update: Value too old: name = tridiumJace/snmp/power-COE2; value time = 1277671357; last cache update = 1277671357;
The most common source for this problem is that a value is submitted
twice. For example your script could be running twice, the script could
print the same line twice or the snmp plugin creates a value with the
same identifier.
I think that once you solve the "duplicate value" problem, your RRD file
will start working as expected. You may have to delete it so it's
re-created with the correct parameters, though.
> This email may be confidential […]
Uhm, you've sent your email to a public mailing list.
Regards,
—octo
--
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100713/d6a50c9c/attachment.pgp
More information about the collectd
mailing list