OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of Maltech »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Messages - Maltech

Pages: [1]
1
20.1 Legacy Series / Get metrics from unbound via telegraf
« on: May 04, 2020, 10:19:37 am »
I'm trying to get statistics from unbound with telegraph. So far I have these lines added to the telegraf config:

Code: [Select]
[[inputs.unbound]]
  binary = "/usr/local/sbin/unbound-control"
  thread_as_tag = false

But I get the following error:

Code: [Select]
E! [inputs.unbound] Error in plugin: error gathering metrics: error running unbound-control: exit status 1 (/usr/local/sbin/unbound-control [stats_noreset])
When I execute the command on the shell I also get an error but without the square brackets it works.
Code: [Select]
/usr/local/sbin/unbound-control stats_noreset
But how can I remove these brackets from the telegraf?

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2