Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Telegraf Working plugin list

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 1 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • kiokomanK
      kiokoman LAYER 8
      last edited by kiokoman

      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 needed

      pkg-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"
      

      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
      Please do not use chat/PM to ask for help
      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

      1 Reply Last reply Reply Quote 1
      • kiokomanK
        kiokoman LAYER 8
        last edited by kiokoman

        new plugin available: suricata
        72d4f20e-f3d3-46c8-9b03-393dc6507798-image.png
        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
        

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

        1 Reply Last reply Reply Quote 0
        • kiokomanK
          kiokoman LAYER 8
          last edited by

          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

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          Please do not use chat/PM to ask for help
          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.