=head1 NAME collectdctl - Control interface for collectd =head1 SYNOPSIS collectdctl I<[options]> IcommandE> I<[command options]> =head1 DESCRIPTION collectdctl provides a control interface for collectd, which may be used to interact with the daemon using the C. =head1 OPTIONS collectdctl supports the following options: =over 4 =item B<-s> I Path to the UNIX socket opened by collectd's C. Default: /var/run/collectd-unixsock =item B<-h> Display usage information and exit. =back =head1 AVAILABLE COMMANDS The following commands are supported: =over 4 =item B IidentifierE> Query the latest collected value identified by the specified IidentifierE> (see below). The value-list associated with that data-set is returned as a list of key-value-pairs, each on its own line. Keys and values are separated by the equal sign (C<=>). =item B [BIsecondsE>] [BInameE>] [BIidE>] Flush the daemon. This is useful, e.Eg., to make sure that the latest values have been written to the respective RRD file before graphing them or copying them to somewhere else. The following options are supported by the flush command: =over 4 =item BIsecondsE> Flush values older than the specified timeout (in seconds) only. =item BInameE> Flush the specified plugin only. I.Ee., data cached by the specified plugin is written to disk (or network or whatever), if the plugin supports that operation. Example: B. =item BIidE> If this option is present, only the data specified by the specified identifier (see below) will be flushed. Note that this option is not supported by all plugins (e.Eg., the C plugin does not support this). =back In contrast to the plain-text protocol used by the C plugin, the B and B options may only be specified once. If specified multiple times, the last one overwrites the ones before. =item B Returns a list of all values (by their identifier) available to the C plugin. Each value is printed on its own line. I.Ee., this command returns a list of valid identifiers that may be used with the other commands. =back =head1 IDENTIFIERS An identifier has the following format: [I/]I[-I]/I[-I] Examples: somehost/cpu-0/cpu-idle uptime/uptime otherhost/memory/memory-used Hostname defaults to the local (non-fully qualified) hostname if omitted. No error is returned if the specified identifier does not exist (this is a limitation in the C library). =head1 SEE ALSO L L L =head1 AUTHOR collectd has been written by Florian Forster Eocto at verplant.orgE and many contributors (see `AUTHORS'). collectdctl has been written by Håkon J Dugstad Johnsen Ehakon-dugstad.johnsenEatEtelenor.comE and Sebastian Harl Esh at tokkee.orgE. =cut