Telegraf Working plugin list
-
this is a simple list of working telegraf plugin that i found so far
already included in the GUI
[[inputs.cpu]] percpu = true totalcpu = true fielddrop = ["time_*"] [[inputs.disk]] ignore_fs = ["tmpfs", "devtmpfs"] [[inputs.diskio]] [[inputs.kernel]] [[inputs.mem]] [[inputs.net]] [[inputs.processes]] [[inputs.swap]] [[inputs.system]] [[inputs.pf]] [[inputs.ping]] [[inputs.netstat]]
this code go inside "Additional configuration for Telegraf"
ntpq - Services / NTP need to be configured
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/ntpq[[inputs.ntpq]] dns_lookup = true
this are only some example and this package need to be installed: net-snmp-5.7.3_20,1
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/snmp
SNMP is FULL of data that can be grabbed
with bsnmpd you can use the PF module,
for the BEGEMOT oid to work you need to copy the content of /usr/share/snmp/mibs/
inside /usr/local/share/snmp/mibs/
more info http://www.circitor.fr/Mibs/Html/B/BEGEMOT-PF-MIB.php[[inputs.snmp]] agents = ["udp://127.0.0.1:161"] timeout = "5s" community = "public" retries = 3 max_repetitions = 10 [[inputs.snmp.field]] oid = "RFC1213-MIB::sysUpTime.0" name = "uptime" [[inputs.snmp.field]] oid = "RFC1213-MIB::sysName.0" name = "source" is_tag = true [[inputs.snmp.table]] oid = "BEGEMOT-PF-MIB::pfInterfacesIfTable" name = "interface"
for unbound you need to create a symlink
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/unbound
rm /usr/local/etc/unbound/unbound.conf
ln -s /var/unbound/unbound.conf /usr/local/etc/unbound/unbound.conf[[inputs.unbound]] binary = "/usr/local/sbin/unbound-control" thread_as_tag = false
netstat
https://github.com/pfsense/FreeBSD-ports/pull/858/commits/1f42860a663bfa1be64918eba314df3094fd91b2
as of now, this is neededpkg-static install lsof
smart status
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/smart[[inputs.smart]] ## Optionally specify the path to the smartctl executable # path = "/usr/bin/smartctl"
-
new plugin available: suricata
change Telegraf Unix Socket to match the name on the plugin[[inputs.suricata]] source = "/tmp/suricata-stats.sock" delimiter = "_"
you also need to change
sysctl -w net.local.stream.recvspace=16384 sysctl -w net.local.stream.sendspace=16384
-
haproxy
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/haproxy
[[inputs.haproxy]] servers = ["socket:/tmp/haproxy.socket"]
the socket is already created by haproxy package