author | Hakon-Dugstad.Johnsen@telenor.com <Hakon-Dugstad.Johnsen@telenor.com> | |
Thu, 5 Aug 2010 14:37:45 +0000 (16:37 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Fri, 6 Aug 2010 06:48:38 +0000 (08:48 +0200) | ||
commit | 35ad86ccb95a7808ad2cf7ad266292cb877c5eb8 | |
tree | 6de2559f97ee50e239dbf17b79e90a1bb925c0c9 | tree | snapshot |
parent | 8c697f28b19df736da174a4fa750fb1ca95c56dc | commit | diff |
Add collectd-flush command line utility.
collectd-flush is a small command-line utility which uses libcollectdclient
to flush collectd through the unixsock plugin. As far as I know, there is
no easy way to work with unix sockets from the shell, so if someone
wanted to flush collectd without this program, they would need to do it
through some other language (or restart the deamon).
I am no C wizard, so please bear with me if I have
done something a stupid way. :)
The code is based on/inspired by collectd-nagios.
If this message is not properly encoded as utf-8, something wrong must have
happened with my mailer. If that's the case, I'm sorry. The only non-ascii character
in the patch is the second character of my name, which is an å.
Signed-off-by: HÃ¥kon J Dugstad Johnsen <hakon-dugstad.johnsen@telenor.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
collectd-flush is a small command-line utility which uses libcollectdclient
to flush collectd through the unixsock plugin. As far as I know, there is
no easy way to work with unix sockets from the shell, so if someone
wanted to flush collectd without this program, they would need to do it
through some other language (or restart the deamon).
I am no C wizard, so please bear with me if I have
done something a stupid way. :)
The code is based on/inspired by collectd-nagios.
If this message is not properly encoded as utf-8, something wrong must have
happened with my mailer. If that's the case, I'm sorry. The only non-ascii character
in the patch is the second character of my name, which is an å.
Signed-off-by: HÃ¥kon J Dugstad Johnsen <hakon-dugstad.johnsen@telenor.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/collectd-flush.c | [new file with mode: 0644] | blob |
src/collectd-flush.pod | [new file with mode: 0644] | blob |