Navigation

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

    Trouble with unbound and telegraf

    pfSense Packages
    1
    1
    237
    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.
    • B
      b_chris last edited by

      Hi,
      I have a problem getting unbound status via telegraf.
      My telegraf.conf looks like this

        server = "127.0.0.1"
        binary = "/usr/local/sbin/unbound-control -c /var/unbound/unbound.conf"
        thread_as_tag = false
      

      When running
      /usr/local/bin/telegraf -config=/usr/local/etc/telegraf.conf --test
      I get the following error:
      [inputs.unbound] Error in plugin: error gathering metrics: error running unbound-control: fork/exec /usr/local/sbin/unbound-control -c /var/unbound/unbound.conf: no such file or directory (/usr/local/sbin/unbound-control -c /var/unbound/unbound.conf [-s 127.0.0.1 stats_noreset])

      But the mentioned command alone works perfect:
      /usr/local/sbin/unbound-control -c /var/unbound/unbound.conf -s 127.0.0.1 stats_noreset

      What am I donig wrong? Pretty sure it is somethins obvious...

      1 Reply Last reply Reply Quote 0
      • First post
        Last post