From: Marc Fournier Date: Thu, 19 Sep 2013 21:27:02 +0000 (+0200) Subject: switch default write_graphite protocol back to TCP X-Git-Tag: collectd-5.4.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F432%2Fhead;p=thirdparty%2Fcollectd.git switch default write_graphite protocol back to TCP The *default* protocol was switched to UDP in 498a0dcd, when UDP support was added to the plugin. Switching this default back to TCP, because it makes the plugin break for users upgrading to 5.4, and also because the UDP listener is disabled in a default graphite installation (cf. https://github.com/graphite-project/carbon/blob/0.9.x/conf/carbon.conf.example#L78) Fixes GH#428 --- diff --git a/src/collectd.conf.in b/src/collectd.conf.in index f93cda5c0..6d19c3222 100644 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@ -1133,7 +1133,7 @@ # # Host "localhost" # Port "2003" -# Protocol "udp" +# Protocol "tcp" # LogSendErrors true # Prefix "collectd" # Postfix "collectd" diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 2aebbd3ac..4bd8aac3e 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -6085,7 +6085,7 @@ Synopsis: Host "localhost" Port "2003" - Protocol "udp" + Protocol "tcp" LogSendErrors true Prefix "collectd" @@ -6106,7 +6106,7 @@ Service name or port number to connect to. Defaults to C<2003>. =item B I -Protocol to use when connecting to I. Defaults to C. +Protocol to use when connecting to I. Defaults to C. =item B B|B diff --git a/src/write_graphite.c b/src/write_graphite.c index 6124d33ed..667c11e3d 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -67,7 +67,7 @@ #endif #ifndef WG_DEFAULT_PROTOCOL -# define WG_DEFAULT_PROTOCOL "udp" +# define WG_DEFAULT_PROTOCOL "tcp" #endif #ifndef WG_DEFAULT_LOG_SEND_ERRORS