Telegraf Installation fails on CentOS7

telegraf
#1

I have tried to install telegraf using instructions provided on the site but it gives me an error about the mirror.

cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF

Error:

https://repos.influxdata.com/rhel/7/x86_64/stable/repodata/repomd.xml: [Errno 14] curl#35 - “Cannot communicate securely with peer: no common encryption algorithm(s).”

and offers to disable the repo.

I was able to install influxdb using the same repo but it won’t install telegraf. How can I install it on CentOS7?Thank you.

#2

I wasn’t able to reproduce your issue on a fresh install of CentOS.

It’s very strange that you were able to install InfluxDB but not Telegraf, as they use the same repository. Something must have changed on your system between installs, can you provide more information?

I also found a relevant StackOverflow question where it seems like others have had a similar issue: