{"id":20541064,"url":"https://github.com/netways/check_influxdb","last_synced_at":"2026-01-07T14:17:17.495Z","repository":{"id":195487144,"uuid":"684141960","full_name":"NETWAYS/check_influxdb","owner":"NETWAYS","description":"Icinga check plugin to check InfluxDB","archived":false,"fork":false,"pushed_at":"2025-03-19T15:26:16.000Z","size":211,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-27T22:12:28.206Z","etag":null,"topics":["icinga","influxdb","monitoring","plugin"],"latest_commit_sha":null,"homepage":"https://www.netways.de/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NETWAYS.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":"2023-08-28T14:41:00.000Z","updated_at":"2025-03-19T15:26:14.000Z","dependencies_parsed_at":"2025-01-30T20:27:23.939Z","dependency_job_id":"c37f4fa6-4952-4c44-b534-c8e89cf11dc0","html_url":"https://github.com/NETWAYS/check_influxdb","commit_stats":{"total_commits":56,"total_committers":4,"mean_commits":14.0,"dds":0.4642857142857143,"last_synced_commit":"c9da8462abda82eed5a1aa3cf3ac1b0ad0479d27"},"previous_names":["netways/check_influxdb"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fcheck_influxdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fcheck_influxdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fcheck_influxdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fcheck_influxdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NETWAYS","download_url":"https://codeload.github.com/NETWAYS/check_influxdb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248848498,"owners_count":21171388,"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":["icinga","influxdb","monitoring","plugin"],"created_at":"2024-11-16T01:19:09.387Z","updated_at":"2026-01-07T14:17:17.490Z","avatar_url":"https://github.com/NETWAYS.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check_influxdb\n\nIcinga check plugin to check InfluxDB\n\n## Usage\n\n### Health\n\nSupported InfluxDB versions:\n\n* v1\n* v2\n\nChecks the health status of an InfluxDB instance.\n\n```\nUsage:\n  check_influxdb health\n\nFlags:\n  -h, --help   help for health\n\nGlobal Flags:\n  -H, --hostname string    Address of the InfluxDB instance (CHECK_INFLUXDB_HOSTNAME) (default \"localhost\")\n  -p, --port int           Port of the InfluxDB instance (default 8086)\n  -s, --secure             Use a HTTPS connection\n  -T, --token string       Token for server authentication (CHECK_INFLUXDB_TOKEN)\n  -u, --user string        Specify the user name and password for server authentication \u003cuser:password\u003e (CHECK_INFLUXDB_BASICAUTH)\n      --ca-file string     Specify the CA File for TLS authentication (CHECK_INFLUXDB_CA_FILE)\n      --cert-file string   Specify the Certificate File for TLS authentication (CHECK_INFLUXDB_CERT_FILE)\n      --key-file string    Specify the Key File for TLS authentication (CHECK_INFLUXDB_KEY_FILE)\n  -i, --insecure           Skip the verification of the server's TLS certificate\n  -t, --timeout int        Timeout in seconds for the CheckPlugin (default 30)\n      --header strings     Additional HTTP header to include in the request. Can be used multiple times.\n                           Keys and values are separated by a colon (--header \"X-Custom: example\").\n  -h, --help               help for check_influxdb\n  -v, --version            version for check_influxdb\n```\n\nThe check plugin respects the environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY.\n\nVarious flags can be set with environment variables, refer to the help to see which flags.\n\nExamples:\n\n```\ncheck_influxdb health\n[OK] - influxdb: pass - ready for queries and writes\n```\n\n### Query\n\nSupported InfluxDB versions:\n\n* v2\n\n```\nUsage:\n  check_influxdb query [flags]\n\nFlags:\n  -o, --org string                     The organization to use (required)\n  -b, --bucket string                  The bucket to use (required)\n  -c, --critical string                The critical threshold (required)\n  -w, --warning string                 The warning threshold (required)\n  -f, --flux-file string               Path to flux file\n  -q, --flux-string string             Flux script as string\n      --perfdata-label-by-key string   Sets the label for the perfdata of the given column key for the record.\n                                       Will skip perfdata output if the key is not found\n      --perfdata-label string          Sets as custom label for the perfdata\n  -h, --help                           help for query\n```\n\nExamples:\n\n```\ncheck_influxdb query --token \"${INFLUX_TOKEN}\" --org influx --bucket telegraf \\\n--warning 1 --critical 2 \\\n--flux-string 'from(bucket:\"monitor\")|\u003erange(start:-1h)|\u003efilter(fn:(r)=\u003er[\"_measurement\"]==\"cpu\")|\u003efilter(fn:(r)=\u003er[\"_field\"]==\"usage_user\")|\u003eaggregateWindow(every:1h,fn:mean)'\n\n[CRITICAL] - InfluxDB Query Status | influxdb.cpu.usage_user=0.078;1;2 influxdb.cpu.usage_user=0.04;1;2 influxdb.cpu.usage_user=0.078;1;2 influxdb.cpu.usage_user=0.04;1;2\nexit status 2\n```\n\n```\ncheck_influxdb query --token \"${INFLUX_TOKEN}\" --org influx --bucket telegraf \\\n--warning 50 --critical 100 \\\n--flux-file mem.flux\n\n[WARNING] - InfluxDB Query Status | influxdb.mem.active=45.5;50;100 influxdb.mem.active=68.9;50;100\nexit status 1\n```\n\n# License\n\nCopyright (c) 2022 [NETWAYS GmbH](mailto:info@netways.de)\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public\nLicense as published by the Free Software Foundation, either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied\nwarranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not,\nsee [gnu.org/licenses](https://www.gnu.org/licenses/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetways%2Fcheck_influxdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetways%2Fcheck_influxdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetways%2Fcheck_influxdb/lists"}