{"id":18151295,"url":"https://github.com/msantos/collectd-prv","last_synced_at":"2025-10-07T04:11:00.561Z","repository":{"id":136621376,"uuid":"105775842","full_name":"msantos/collectd-prv","owner":"msantos","description":"stdout to collectd notification","archived":false,"fork":false,"pushed_at":"2025-02-26T12:14:36.000Z","size":86,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T21:01:28.582Z","etag":null,"topics":["capsicum","collectd","flowcontrol","monitoring","pledge","seccomp","setrlimit"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msantos.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,"publiccode":null,"codemeta":null}},"created_at":"2017-10-04T14:05:12.000Z","updated_at":"2025-02-26T12:14:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd22b580-a949-49b7-80d9-9495306e48db","html_url":"https://github.com/msantos/collectd-prv","commit_stats":{"total_commits":85,"total_committers":1,"mean_commits":85.0,"dds":0.0,"last_synced_commit":"a03623496071059478a7b04b1c4219f097a7c958"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/msantos/collectd-prv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fcollectd-prv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fcollectd-prv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fcollectd-prv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fcollectd-prv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msantos","download_url":"https://codeload.github.com/msantos/collectd-prv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fcollectd-prv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717534,"owners_count":26033550,"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-07T02:00:06.786Z","response_time":59,"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":["capsicum","collectd","flowcontrol","monitoring","pledge","seccomp","setrlimit"],"created_at":"2024-11-02T01:07:16.514Z","updated_at":"2025-10-07T04:11:00.557Z","avatar_url":"https://github.com/msantos.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# collectd-prv: stdout to collectd notifications\n\ncollectd-prv converts stdout from a process into collectd notifications,\noptionally acting like a pressure relief valve during event floods.\n\n## Usage\n\n## Example\n\n* script\n\n```collectd-tail\n#!/bin/bash\n\nset -o errexit\nset -o nounset\nset -o pipefail\n\n# plugin = tail\n# type = syslog\n# limit = 30 lines/second\ntail -F $1 | collectd-prv --service=\"tail/syslog\" --limit=30\n```\n\n```collectd.conf\nLoadPlugin exec\n\u003cPlugin exec\u003e\n  Exec \"nobody:nobody\" \"collectd-tail\" \"/var/log/syslog\"\n\u003c/Plugin\u003e\n```\n\n## Build\n\n```\nmake\n\n# Recommended: build a static executable using musl\n## sudo apt install musl-dev musl-tools\n./musl-make clean all\n\n# select a different method for process restriction\nRESTRICT_PROCESS=null make clean all\n\n# musl: enabling seccomp process restriction requires downloading linux\n# kernel headers\nexport MUSL_INCLUDE=/tmp\ngit clone https://github.com/sabotage-linux/kernel-headers.git $MUSL_INCLUDE/kernel-headers\n./musl-make\n```\n\n## Process Restrictions\n\n## Options\n\n-s, --service *plugin*/*type*\n: collectd service (default: stdout/prv)\n\n-H, --hostname *name*\n: collectd hostname (max: 16 bytes) (default: gethostname())\n\n-l, --limit *number*\n: message rate limit (default: 0 (no limit))\n\n-w, --window *seconds*\n: message rate window (default: 1 second)\n\n-W, --write-error *exit|drop|block*\n: behaviour if write buffer is full\n\n-M, --max-event-length *number*\n: max message fragment length (default: 255 - 10)\n\n-I, --max-event-id *number*\n: max message fragment header id (default: 99)\n\n-v, --verbose\n: verbose mode\n\n-h, --help\n:  help\n\n## Examples\n\n## TODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Fcollectd-prv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsantos%2Fcollectd-prv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Fcollectd-prv/lists"}