Giter Site home page Giter Site logo

Comments (10)

jsternberg avatar jsternberg commented on June 30, 2024

I've tried installing iputils in a test and then I tried running it. I'm getting this even with iputils installed.

$ docker run --rm telegraf:1.2-alpine ping -h
ping: unrecognized option: h
BusyBox v1.25.1 (2016-10-26 16:15:20 GMT) multi-call binary.

Usage: ping [OPTIONS] HOST

Send ICMP ECHO_REQUEST packets to network hosts

        -4,-6           Force IP or IPv6 name resolution
        -c CNT          Send only CNT pings
        -s SIZE         Send SIZE data bytes in packets (default:56)
        -t TTL          Set TTL
        -I IFACE/IP     Use interface or IP address as source
        -W SEC          Seconds to wait for the first response (default:10)
                        (after all -c CNT packets are sent)
        -w SEC          Seconds until ping exits (default:infinite)
                        (can exit earlier with -c CNT)
        -q              Quiet, only display output at start
                        and when finished
        -p              Pattern to use for payload

telegraf:1.2-alpine is what I have it named locally after building the image. It is not the image that's on Docker Hub for the above.

Are you sure that iputils installs the GNU ping program? It seems to just install the same BSD one.

from influxdata-docker.

jsternberg avatar jsternberg commented on June 30, 2024

@sparrc what ping program does the FreeBSD implementation of telegraf use?

from influxdata-docker.

sparrc avatar sparrc commented on June 30, 2024

it uses BSD

from influxdata-docker.

jsternberg avatar jsternberg commented on June 30, 2024

Any idea what might be the problem here then? Which ping does busybox use and is it possible to get telegraf to support that? I don't think there's another ping program I can install.

from influxdata-docker.

sparrc avatar sparrc commented on June 30, 2024

I guess the busybox ping doesn't support -i, is there a runtime.GOOS for busybox? if so we could do something here: https://github.com/influxdata/telegraf/blob/master/plugins/inputs/ping/ping.go#L144

from influxdata-docker.

gamkiller77 avatar gamkiller77 commented on June 30, 2024

So been looking in to this as I really want the alpine Linux version to work. From what I read the -i is not supported but -c is witch may work. I am also going to look in to removing the busybox ping and replace it with iputils as that would fix the -i problem. As soon as I get back from lunch I will look in to this. If it works what the projects method of getting this update? A PR or just post here the new dockerfile lines needed to make it work?

from influxdata-docker.

gamkiller77 avatar gamkiller77 commented on June 30, 2024

I was able to fix this problem with iputils being installed. There was a line in the dockfile that kept removing it. I am going to submit a PR @jsternberg @sparrc @Nemykal

from influxdata-docker.

gamkiller77 avatar gamkiller77 commented on June 30, 2024

added iputils so ping works #68 << PR

from influxdata-docker.

gamkiller77 avatar gamkiller77 commented on June 30, 2024

submitted new PR for both 1.1 and 1.2 releases.

from influxdata-docker.

jsternberg avatar jsternberg commented on June 30, 2024

Fixed via #69.

from influxdata-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.