SLES 12.2 telegraf install instructions do not work

I am attempting to follow the instructions on https://docs.influxdata.com/telegraf/v1/install/ to install telegraf on a SLES 12 host.

Initially the repository gives a totally invalid path, but correcting the path to the repo for the platform doesn’t fix anything, as there is no telegraf package available there, either.

http://download.opensuse.org/repositories/devel:/languages:/go/SLE_12_SP2/

Is there a supported package for SLES out there or do I need to build it another way?

node01:~ # zypper ar -f obs://devel:languages:go/ go
Guessed: platform = SLES_$releasever
Adding repository ‘go’ …[done]
Repository ‘go’ successfully added
Enabled : Yes
Autorefresh : Yes
GPG Check : Yes
Priority : 99
URI : http://download.opensuse.org/repositories/devel:/languages:/go/SLES_12.2

node01**:~ # zypper in telegraf**
Retrieving repository ‘go’ metadata …[error]
Repository ‘go’ is invalid.
[go|http://download.opensuse.org/repositories/devel:/languages:/go/SLES_12.2] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository ‘go’ because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data…
Reading installed packages…
‘telegraf’ not found in package names. Trying capabilities.
No provider of ‘telegraf’ found.
Resolving package dependencies…
Nothing to do.

These packages, which are maintained by the SUSE community, are appear to be available for 12.3. You could try installing the package from 12.3:

I tried this and it does work, though the package doesn’t appear to include any initscripts, you will need to write your own.

You might consider installing the Centos/Redhat RPM instead from Downloads, this package is maintained by InfluxData and has a systemd service file and the latest version. There is one issue with running it on SLES, the shadow-util dependencies is not valid so it has to be installed using rpm -i --nodeps telegraf-*.rpm.

Oh, cool. If the CentOS RPM will suffice with nodeps for shadow-util then I’m in business! I’m already running a few Centos & RHEL machines so that’s not a big deal.

TOTALLY weird that it is in 12.3 and not 12.2.

Anyway - thanks a lot for the feedback, maybe I can get this working for SLES now. :slight_smile:

Yep, seems to be working fine so far and the install was the same as CentOS as well.

node01:~ # rpm -ivh telegraf-1.6.2-1.x86_64.rpm --nodeps
Preparing… ################################# [100%]
Updating / installing…
1:telegraf-1.6.2-1 ################################# [100%]
Created symlink from /etc/systemd/system/multi-user.target.wants/telegraf.service to /usr/lib/systemd/system/telegraf.service.