OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: mbosner on May 10, 2018, 01:15:44 pm

Title: Update telegraf package
Post by: mbosner on May 10, 2018, 01:15:44 pm
Currently features like ping metrics from the telegraf plugin are more or less useless since rtt etc. is skipped in the reporting (to influxdb or others).

Telegraf 1.3.1 was releases on 2017-05-31. A more recent version in the package system would be great :)

cheers
Martin
Title: Re: Update telegraf package
Post by: mimugmail on May 10, 2018, 03:01:05 pm
This is the version the plugin, not the package.
What features are you missing?
Title: Re: Update telegraf package
Post by: mbosner on June 01, 2018, 02:59:46 am
Sorry for my late reply.

My mistake - its 1.6.3

I am missing the ping rtt etc. on opnsense i get:

Code: [Select]
# telegraf --config telegraf.conf --input-filter ping --test
* Plugin: inputs.ping, Collection 1
> ping,host=router.hamburg.test.de,url=8.8.8.8 result_code=0i 1527814612000000000
> ping,host=router.hamburg.test.de,url=heise.de result_code=0i 1527814612000000000

But it should be something like:
Code: [Select]
$ ./telegraf --config telegraf.conf --input-filter ping --test
* Plugin: ping, Collection 1
ping,host=WIN-PBAPLP511R7,url=www.google.com result_code=0i,average_response_ms=7i,maximum_response_ms=9i,minimum_response_ms=7i,packets_received=4i,packets_transmitted=4i,percent_packet_loss=0,percent_reply_loss=0,reply_received=4i 1469879119000000000
Title: Re: Update telegraf package
Post by: mimugmail on June 01, 2018, 07:13:50 am
Perhaps this is a feature lack of the freebsd pkg from telegraf? There's no option for RTT so I don't think it's a problem with OPNsense itself.
Title: Re: Update telegraf package
Post by: franco on June 01, 2018, 08:11:27 am
Yes, we had 1.6.1 pre-18.1.9, but now it's 1.6.3.

We don't control the process for FreeBSD inclusion on a lot of software we use, mostly because capable individuals run these shows and we are happy consumers. Occasionally, this means package updates are delayed.


Cheers,
Franco
Title: Re: Update telegraf package
Post by: mbosner on June 03, 2018, 01:02:42 am
ok thank you.

Can you point me to the direction where i can find the source ? Seems that i am too ...

Cheers
Title: Re: Update telegraf package
Post by: mimugmail on June 03, 2018, 02:32:50 am
https://github.com/influxdata/telegraf
Title: Re: Update telegraf package
Post by: mbosner on June 04, 2018, 12:40:50 am
i missed the point when they started building freebsd builds.

thank you

https://github.com/influxdata/telegraf/issues/4227
Title: Re: Update telegraf package
Post by: mbosner on June 07, 2018, 12:04:53 am
Ok - it should be fixed in 1.70. I will check the nightly build tomorrow.

Cheers
Title: Re: Update telegraf package
Post by: mbosner on June 07, 2018, 11:19:19 am
Its fixed in 1.70 nightly. Cheers :)
Title: Re: Update telegraf package
Post by: cguilford on June 07, 2018, 05:49:01 pm
Mind if I ask a newb question?  This isn't showing up when I check for Update?  How do I/can I force it to install?  I'm trying to figure out how to get this to work.
Title: Re: Update telegraf package
Post by: mbosner on June 08, 2018, 01:33:59 am
You need to wait for opnsense to release a new version with 1.70 onboard.

If you want to test it install the package from opnsense and replace the binary with the one from the nighly build:

https://github.com/influxdata/telegraf
Title: Re: Update telegraf package
Post by: franco on June 12, 2018, 09:49:24 am
You mean 1.7.0 ? It's currently release candidate so there is no release yet from upstream.


Cheers,
Franco
Title: Re: Update telegraf package
Post by: mbosner on July 17, 2018, 02:27:42 am
Sorry for the late reply.

Yes, I was talking about 1.7.0. In the meantime they released 1.7.0 (2018-06-12 - the day of your last post - just some hours later ;) and 1.7.1 .

Thank you
Title: Re: Update telegraf package
Post by: franco on July 18, 2018, 11:50:52 pm
FreeBSD ports doesn't seem to pick it up. I'll try to prod the maintainer.


Cheers,
Franco
Title: Re: Update telegraf package
Post by: mbosner on July 20, 2018, 02:09:53 am
Great - thank you!