OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: nycaleksey on October 27, 2017, 02:44:50 pm

Title: Telegraf in 17.7.7_1
Post by: nycaleksey on October 27, 2017, 02:44:50 pm
Hi,

I am running 17.7.7_1 and deployed the newly published Telegraf plugin. It works fine except for one missing item - network traffic. Seems like Telegraf does not report NIC activity counters. The firewall has two Intel NICs, both using stock 7.6.1-k driver. Does anyone here run Telegraf plugin with NIC counters being reported ?

Thank you,

Aleksey
Title: Re: Telegraf in 17.7.7_1
Post by: mimugmail on October 27, 2017, 03:56:09 pm
Did they work without the plugin? Or better, did you run telegraf via CLI?
I didn't add it since it doesn't show any graphs for me (I was guessing not supported on FreeBSD)
Title: Re: Telegraf in 17.7.7_1
Post by: nycaleksey on October 27, 2017, 04:50:42 pm
Turns out, all I had to do to enable NIC counters reporting was add “[[inputs.net]]” line to the bottom of telegraf.conf, and restart the telegraf service.
It doesn’t survive the reboots though.
Title: Re: Telegraf in 17.7.7_1
Post by: nycaleksey on October 27, 2017, 11:52:17 pm
@mimugmail - Thank you very much for creating this plugin.

I have added support for NIC statistics collection and created Pull request 348 with the changes.