{"id":16463274,"url":"https://github.com/leoverto/telegraf-apc-ups-status","last_synced_at":"2026-06-10T03:31:19.087Z","repository":{"id":147558327,"uuid":"182449098","full_name":"LeoVerto/telegraf-apc-ups-status","owner":"LeoVerto","description":"Python script to prepare APC UPS status for telegraf/influxdb","archived":false,"fork":false,"pushed_at":"2019-04-20T21:36:34.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T10:36:28.653Z","etag":null,"topics":["apc","influxdb","python","telegraf","ups"],"latest_commit_sha":null,"homepage":"","language":"Python","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/LeoVerto.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-20T19:59:25.000Z","updated_at":"2023-01-15T11:26:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f379f56-0aff-47bf-b03e-ca18397d1ae1","html_url":"https://github.com/LeoVerto/telegraf-apc-ups-status","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LeoVerto/telegraf-apc-ups-status","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoVerto%2Ftelegraf-apc-ups-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoVerto%2Ftelegraf-apc-ups-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoVerto%2Ftelegraf-apc-ups-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoVerto%2Ftelegraf-apc-ups-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeoVerto","download_url":"https://codeload.github.com/LeoVerto/telegraf-apc-ups-status/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoVerto%2Ftelegraf-apc-ups-status/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34136112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["apc","influxdb","python","telegraf","ups"],"created_at":"2024-10-11T11:13:58.954Z","updated_at":"2026-06-10T03:31:19.076Z","avatar_url":"https://github.com/LeoVerto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python APC UPS data collector for telegraf\nThis is a port of this PHP script by Walter Nasich: https://bitbucket.org/snippets/wnasich/7Kg89/\n\n## Usage\nCreate `/usr/local/sbin/apc_collector.sh` with the following content:\n \n    #!/bin/bash\n    apcaccess | python3 /path/to/apc2telegraf.py\n\nMake it executable:\n    \n    $ chmod a+x /usr/local/sbin/apc_collector.sh\n \nEdit your telegraf.conf, add an 'exec' input:\n\n    [[inputs.exec]]\n       commands = [\"/usr/local/bin/apc_collector.sh\"]\n       data_format = \"influx\"\n\nRestart telegraf. Data will be collected under the measurement 'ups_apc'.\n\n## Collecting UPS events\n\nIf you want to collect UPS events:\n* Add this to /etc/rc.local:\n  `$ touch /tmp/upsapcevents.log`\n\n* Add to /etc/apcupsd/apccontrol at line 32 the line below:\n\n      echo \"ups_apc_event,ups_name=$1 status=\\\"$2\\\" `date +%s%N`\" \u003e\u003e /tmp/upsapcevents.log\n\n* Enable inputs.tail at /etc/telegraf/telegraf.conf\n  Spec next settings:\n  \n      files = [\"/tmp/upsapcevents.log\"]\n      from_beginning = false\n      data_format = \"influx\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoverto%2Ftelegraf-apc-ups-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoverto%2Ftelegraf-apc-ups-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoverto%2Ftelegraf-apc-ups-status/lists"}