Skip to content

collectd: Plugin write_http can't be loaded #27788

@hidrarga

Description

@hidrarga

Package Name

collectd

Maintainer

Jo-Philipp Wich [email protected], Hannu Nyman [email protected]

OpenWrt Version

24.10.4

OpenWrt Target/Subtarget

ipq40xx/mikrotik

Steps to Reproduce

  1. Configure the write_http plugin:
config plugin write_http
  option enable '1'

config write_http_node
  option name "collectd_exporter"
  option URL "https://collectd.example.com"
  option Format "JSON"
  option User 'COLLECTD_USER'
  option Password 'COLLECTD_PASSWORD'
  1. Restart the collectd service
  2. In the logs, the message Configuration definition file for write_http not found appears
  3. The plugin write_http isn't loaded

Actual Behaviour

There seems to be a typo in the collectd plugin write-http. The collectd service looks for the file /usr/share/collectd/plugin/write_http.json (because in the config file the plugin is named write_http with an underscore), but this file doesn't exist. There is a file named write-http.json (with a dash) though.

I could fix the issue by renaming that file to /usr/share/collectd/plugin/write_http.json

I don't know why this file was renamed, but from what I can see it was done in commit beb0de6 (maybe @hnyman knows better?)

Confirmation Checklist

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions