[collectd] collectd exec plugin
Stuart Cracraft
smcracraft at me.com
Tue Aug 19 03:18:57 CEST 2014
This appears to be related to the mystery - this code isn't commented at:
https://github.com/collectd/collectd/blob/master/src/utils_cmd_putval.c
What does this do and why am I getting this error?
ds = plugin_get_ds (type);
if (ds == NULL) {
print_to_socket (fh, "-1 Type `%s' isn't defined.\n", type);
sfree (identifier_copy);
return (-1);
}
On Aug 18, 2014, at 06:09 PM, Stuart Cracraft <smcracraft at me.com> wrote:
So I have just heard that collectd doesn't output all its error messages
to logfiles in accessible form, since it gives feedback to the console
for data collection (I would recommend putting it in /var/log/collectd.log.)
So I shut it off and ran it with:
/usr/sbin/collectd -f -C /etc/collectd/collectd.conf
on the console, which gave:
/usr/sbin/collectd -f -C /etc/collectd/collectd.conf
Initialising rabbitmq_info
,-1 Type `all' isn't defined.
-1 Type `all' isn't defined.
What does the "-1 Type `all' isn't defined" mean?
It isn't appearing in the standard output of my PUTVAL exec script
which looks very clean innocent:
PUTVAL "some-fully-qualified-name/rabbitmq/more-rabbits" interval=10 N:2
PUTVAL "some-fully-qualified-name/rabbitmq/more-rabbits" interval=10 N:100
PUTVAL "some-fully-qualified-name/rabbitmq/more-rabbits" interval=10 N:500000
:
:
:
Guidance you give on this will be appreciated!
--Stuart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20140819/36e1fc9c/attachment.html>
More information about the collectd
mailing list