{"id":31816827,"url":"https://github.com/splunk/collectd-plugins","last_synced_at":"2025-10-11T09:58:51.443Z","repository":{"id":47642664,"uuid":"223283109","full_name":"splunk/collectd-plugins","owner":"splunk","description":"SAI x Collectd: https://docs.splunk.com/Documentation/InfraApp/latest/Admin/ManageAgents","archived":false,"fork":false,"pushed_at":"2024-02-15T21:40:53.000Z","size":44,"stargazers_count":13,"open_issues_count":4,"forks_count":6,"subscribers_count":16,"default_branch":"collectd-5.9","last_synced_at":"2024-04-15T02:58:38.945Z","etag":null,"topics":["collectd","splunk"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splunk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-21T23:20:50.000Z","updated_at":"2024-03-22T01:38:22.000Z","dependencies_parsed_at":"2023-01-20T03:46:29.437Z","dependency_job_id":null,"html_url":"https://github.com/splunk/collectd-plugins","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/splunk/collectd-plugins","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fcollectd-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fcollectd-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fcollectd-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fcollectd-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splunk","download_url":"https://codeload.github.com/splunk/collectd-plugins/tar.gz/refs/heads/collectd-5.9","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fcollectd-plugins/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006750,"owners_count":26084185,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["collectd","splunk"],"created_at":"2025-10-11T09:58:30.037Z","updated_at":"2025-10-11T09:58:51.439Z","avatar_url":"https://github.com/splunk.png","language":"C","readme":"# Collectd-plugins\n\nC plugins for collectd:\n* write_splunk: write plugin: Write data to Splunk over HEC or UDP\n* processmon: read plugin: monitor processes running on your system. Linux only.\n* docker: read plugin: monitor docker containers running in your system.\n\n## How to build the plugins\n\n1. Clone the collectd repo from github:\n``` git clone https://github.com/collectd/collectd.git ```\n\n2. Switch to collectd-5.9 branch:\n``` cd collectd \u0026\u0026 git checkout collectd-5.9 ```\nFor collectd-5.8, use collectd-5.8 branch here.\n\n3. Copy the plugin source files to the collectd repo:\n``` cp ${collectd_plugins_dir}/src/* src/ ```\n\n4. Apply the patch file to the collectd repo:\n``` git apply ${collectd_plugins_dir}/add-splunk-plugins.patch ```\n\n5. Compile collectd:\n``` ./build.sh \u0026\u0026 ./configure \u0026\u0026 make ```\nUse ``` ./configure --help ``` to see the configuration options.\nRead the collectd README file to see the requirements to compile it.\nFor docker plugin: libyajl2 and libcurl dev packages are required.\nFor write_splunk plugin: libcurl dev paackage is required.\n\n6. Run Tests:\n``` make check-TESTS ```\n\n7. Install collectd:\n``` make install ```\n\n8. Update settings for the plugins in collectd.conf file:\n``` vi /opt/collectd/etc/collectd.conf ```\nMake sure you enable write_splunk and other plugins you want and also update the token, server etc. for write_splunk:\n```\n\u003cLoadPlugin \"write_splunk\"\u003e\n        FlushInterval 30\n\u003c/LoadPlugin\u003e\n```\n\n9. Start collectd:\n``` /opt/collectd/sbin/collectd ```\n\n## Example: Getting started on new Ubuntu 16.04 installation\n\n```\napt-get update\ngit clone https://github.com/collectd/collectd.git\ncd collectd\napt-get install -y autoconf libtool pkg-config bison byacc flex\napt-get install -y libyajl-dev libcurl4-openssl-dev\ngit checkout collectd-5.9\ncp /collectd-plugins/src/* src/\ngit apply /collectd-plugins/add-splunk-plugins.patch\n./build.sh\n./configure CFLAGS=\"-g -O2 -fstack-protector -D_FORTIFY_SOURCE=2 -fpie\" LDFLAGS=\"-Wl,-z,relro\"\nmake\nmake check-TESTS\nmake install\nvi /opt/collectd/etc/collectd.conf\n/opt/collectd/sbin/collectd\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplunk%2Fcollectd-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplunk%2Fcollectd-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplunk%2Fcollectd-plugins/lists"}