openwrt / openwrt/packages

collectd: Plugin write_http can't be loaded

Open
#27,788 1 comment 0 reactions 1 assignee View on GitHub

@hnyman is already working on this.

Since Nov 8, 2025.

bug release/24.10
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

collectd

Maintainer

Jo-Philipp Wich jo@mein.io, Hannu Nyman hannu.nyman@iki.fi

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 https://github.com/openwrt/packages/commit/beb0de663c112ecb439fa30c4bd4aad73add2b6a (maybe @hnyman knows better?)

Confirmation Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.