Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<insecure_skip_verify> in [[output.http]] #9468

Closed
mdraevich opened this issue Jul 5, 2021 · 1 comment
Closed

<insecure_skip_verify> in [[output.http]] #9468

mdraevich opened this issue Jul 5, 2021 · 1 comment
Labels
area/snmp bug unexpected problem or unintended behavior

Comments

@mdraevich
Copy link

Good day!

Seems like insecure_skip_verify is not working for output.http. Any ideas?

admin@st2-prod:~$ sudo cat /etc/telegraf/telegraf.conf
[[inputs.snmp_trap]]
  ## SNMP Trap reciever configuration
  service_address = "udp://172.17.17.29:162"
  version = "2c"


[[outputs.http]]
  ## URL is the address to send metrics to
  url = "https://st2.organization.minsk.by/api/v1/webhooks/power_failure"

  timeout = "5s"
  method = "POST"
  insecure_skip_verify = true
  data_format = "json"

  [outputs.http.headers]
    Content-Type = "application/json; charset=utf-8"
    St2-Api-Key = "xxx"
admin@st2-prod:~$ telegraf --version
Telegraf 1.19.0 (git: HEAD ed412d7f)
admin@st2-prod:~$ 
admin@st2-prod:~$ 
admin@st2-prod:~$ /usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
2021-07-05T23:27:58Z I! Starting Telegraf 1.19.0
2021-07-05T23:27:58Z E! [telegraf] Error running agent: Error loading config file /etc/telegraf/telegraf.conf: error parsing http array, line 13: field corresponding to `insecure_skip_verify' in http.HTTP cannot be set through TOML
admin@st2-prod:~$ 
@mdraevich mdraevich added the bug unexpected problem or unintended behavior label Jul 5, 2021
@srebhan
Copy link
Contributor

srebhan commented Jul 6, 2021

Fixed in master with PR #9413.

@srebhan srebhan closed this as completed Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/snmp bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants