{"id":13856801,"url":"https://github.com/dbrgn/collectd-python-plugins","last_synced_at":"2025-09-28T16:30:56.078Z","repository":{"id":66129981,"uuid":"84600916","full_name":"dbrgn/collectd-python-plugins","owner":"dbrgn","description":"CPU Temperature plugin for Collectd. Works out of the box on the Raspberry Pi.","archived":false,"fork":false,"pushed_at":"2021-01-19T23:19:21.000Z","size":12,"stargazers_count":24,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T10:42:08.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbrgn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-03-10T21:09:27.000Z","updated_at":"2024-02-28T15:06:37.000Z","dependencies_parsed_at":"2023-03-10T23:39:31.746Z","dependency_job_id":null,"html_url":"https://github.com/dbrgn/collectd-python-plugins","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fcollectd-python-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fcollectd-python-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fcollectd-python-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fcollectd-python-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrgn","download_url":"https://codeload.github.com/dbrgn/collectd-python-plugins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234452073,"owners_count":18834740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-05T03:01:13.926Z","updated_at":"2025-09-28T16:30:50.799Z","avatar_url":"https://github.com/dbrgn.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Collectd Python Plugins\n\nThis is a collections of Python plugin for Collectd.\n\n- `cpu_temp.py`: Report the CPU temperature. Tested on a Raspberry Pi 3.\n- `sht21.py`: Measure temperature and relative humidity from a Sensirion SHT21\n  sensor connected via I²C. Calculate dew point and absolute humidity. Tested\n  on a Raspberry Pi 3.\n- `shtc3.py`: Measure temperature and relative humidity from a Sensirion SHTC3\n  sensor connected via I²C. Calculate dew point and absolute humidity. Tested\n  on a Raspberry Pi 3.\n- `mcp3425.py`: Measure voltage using an MCP3425 analog-digital converter.\n\nFor more information, please refer to [my\nblogpost](https://blog.dbrgn.ch/2017/3/10/write-a-collectd-python-plugin/).\n\n## Configuration\n\nCopy the desired Python files to your target system. Then add the module to\nyour `collectd.conf`. Make sure to adjust the `ModulePath` value. The following\nexample assumes the plugins were copied to `/opt/collectd_plugins`.\n\n### cpu_temp\n\nIf your CPU temperature cannot be read from\n`/sys/class/thermal/thermal_zone0/temp`, make sure to adjust that variable too.\n\n    LoadPlugin python\n    \u003cPlugin python\u003e\n        ModulePath \"/opt/collectd_plugins\"\n        Import \"cpu_temp\"\n        \u003cModule cpu_temp\u003e\n            Path \"/sys/class/thermal/thermal_zone0/temp\"\n        \u003c/Module\u003e\n    \u003c/Plugin\u003e\n\n### sht21\n\nFor this plugin to work, the `sht21` kernel module must be loaded:\n\n    echo \"sht21\" \u003e /etc/modules-load.d/sht21.conf\n\nThere are currently no configuration options available.\n\n    LoadPlugin python\n    \u003cPlugin python\u003e\n        ModulePath \"/opt/collectd_plugins\"\n        Import \"sht21\"\n    \u003c/Plugin\u003e\n\n### shtc3\n\nFor this plugin to work, the `shtc1` kernel module must be loaded:\n\n    echo \"shtc1\" \u003e /etc/modules-load.d/shtc1.conf\n    modprobe shtc1\n\nDefault config:\n\n    LoadPlugin python\n    \u003cPlugin python\u003e\n        ModulePath \"/opt/collectd_plugins\"\n        Import \"shtc3\"\n    \u003c/Plugin\u003e\n\nOptionally, the hwmon device (hwmon0 by default) can be configured:\n\n    LoadPlugin python\n    \u003cPlugin python\u003e\n        ModulePath \"/opt/collectd_plugins\"\n        Import \"shtc3\"\n        \u003cModule shtc3\u003e\n            Hwmon \"hwmon2\"\n        \u003c/Module\u003e\n    \u003c/Plugin\u003e\n\n### mcp3425\n\nThe plugin assumes that you're using three voltage divider resistors to bring\nthe voltage into a measurable range. You can configure them in the Python\nscript.\n\nThis plugin requires the python-smbus package to be installed.\n\nThere are currently no configuration options available.\n\n    LoadPlugin python\n    \u003cPlugin python\u003e\n        ModulePath \"/opt/collectd_plugins\"\n        Import \"mcp3425\"\n    \u003c/Plugin\u003e\n\n## Other Plugins\n\nThis is my personal collection of plugins. If you also created a Collectd\nplugin that's great! I won't accept pull requests for now though since I cannot\ntest and maintain plugins for which I don't have any matching hardware.\n\nInstead, feel free to create a pull request to add your plugin to the list\nbelow!\n\n\u003c!-- - [`name.py`](link-to-plugin): Description of the plugin --\u003e\n\n- [`arris_modem.py`](https://github.com/jakup/collectd-python-plugins): Report\n  the upstream/downstream channels of an Arris DOCSIS3 cable modem.\n\n## License\n\nMIT License, see LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fcollectd-python-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrgn%2Fcollectd-python-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fcollectd-python-plugins/lists"}