{"id":21400314,"url":"https://github.com/oefenweb/ansible-cacti-plugin-percona","last_synced_at":"2025-03-16T15:55:12.522Z","repository":{"id":51147637,"uuid":"57391800","full_name":"Oefenweb/ansible-cacti-plugin-percona","owner":"Oefenweb","description":"Ansible role to set up the percona monitoring plugins for cacti in Debian-like systems","archived":false,"fork":false,"pushed_at":"2023-11-02T11:01:51.000Z","size":58,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T02:44:42.896Z","etag":null,"topics":["ansible","cacti","monitoring","percona","plugin","ubuntu"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/Oefenweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-04-29T14:45:54.000Z","updated_at":"2022-06-18T04:04:32.000Z","dependencies_parsed_at":"2023-02-08T19:15:51.053Z","dependency_job_id":"aee36372-1a94-45f4-acdb-99fd6d8b400c","html_url":"https://github.com/Oefenweb/ansible-cacti-plugin-percona","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-cacti-plugin-percona","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-cacti-plugin-percona/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-cacti-plugin-percona/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-cacti-plugin-percona/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oefenweb","download_url":"https://codeload.github.com/Oefenweb/ansible-cacti-plugin-percona/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243893905,"owners_count":20364916,"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":["ansible","cacti","monitoring","percona","plugin","ubuntu"],"created_at":"2024-11-22T15:20:59.292Z","updated_at":"2025-03-16T15:55:12.505Z","avatar_url":"https://github.com/Oefenweb.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## cacti-plugin-percona\n\n[![CI](https://github.com/Oefenweb/ansible-cacti-plugin-percona/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-cacti-plugin-percona/actions?query=workflow%3ACI)\n[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-cacti--plugin--percona-blue.svg)](https://galaxy.ansible.com/Oefenweb/cacti_plugin_percona)\n\nSet up [Percona MySQL Monitoring Template](https://www.percona.com/doc/percona-monitoring-plugins/1.0/cacti/mysql-templates.html) for Cacti in Debian-like systems.\n\n#### Requirements\n\n* `git` (will be installed)\n* `perl-modules` (will be installed)\n* `rsync` (will be installed)\n* `php` (will **not** be installed)\n\n#### Variables\n\n* `cacti_plugin_percona_git_repo`: [default: `https://github.com/tersmitten/percona-monitoring-plugins.git`]: Percona MySQL Monitoring Template git repo (e.g. `https://github.com/percona/percona-monitoring-plugins.git`)\n* `cacti_plugin_percona_version`: [default: `1.1.9`]: Only used in `{{ cacti_plugin_percona_git_version }}` (e.g. `1.1.8`)\n* `cacti_plugin_percona_git_version`: [default: `\"{{ cacti_plugin_percona_version }}\"`]: What version of Percona MySQL Monitoring Template to check out (set up). This can be the full 40-character SHA-1 hash, the literal string HEAD, a branch name, or a tag name\n* `cacti_plugin_percona_scripts_path`: [default: `/usr/share/cacti/site/scripts`]: Path of to `import_template.php`\n* `cacti_plugin_percona_import_template_php_path`: [default: `/usr/share/cacti/cli/import_template.php`]:\n* `cacti_plugin_percona_import_template_php_options`: [default: `[]`]: Options to pass to `import_template.php` (e.g. ['--remove-orphans'])\n* `cacti_plugin_percona_ss_get_by_ssh_php_cnf`: [default: `[]`]: List of lines to be added to `\"{{ cacti_plugin_percona_ss_get_by_ssh_php_cnf_file }}\"`\n* `cacti_plugin_percona_ss_get_mysql_stats_php_cnf`: [default: `[]`]: List of lines to be added to `\"{{ cacti_plugin_percona_ss_get_mysql_stats_php_cnf_file }}\"`\n* `cacti_plugin_percona_ss_get_x_php_cnf_user`: [default: `root`]: Owner of the `.cnf` files\n* `cacti_plugin_percona_ss_get_x_php_cnf_group`: [default: `www-data`]: Group of the `.cnf` files\n* `cacti_plugin_percona_ss_get_x_php_cnf_mode`: [default: `0640`]: Mode of the `.cnf` files\n\n## Dependencies\n\nNone\n\n## Recommended\n\n* `cacti-plugin-percona` ([see](https://github.com/Oefenweb/ansible-cacti-plugin-percona))\n* `cacti-server` ([see](https://github.com/Oefenweb/ansible-cacti-server))\n* `cacti-spine` ([see](https://github.com/Oefenweb/ansible-cacti-spine))\n\n#### Example(s)\n\n##### Simple\n\n```yaml\n---\n- hosts: all\n  roles:\n    - oefenweb.cacti-plugin-percona\n```\n\n##### Advanced\n\n```yaml\n---\n- hosts: all\n  roles:\n    - oefenweb.cacti-plugin-percona\n  vars:\n    cacti_plugin_percona_scripts_path: /usr/share/cacti/site/scripts\n    cacti_plugin_percona_import_template_php_path: /usr/share/cacti/cli/import_template.php\n    cacti_plugin_percona_ss_get_by_ssh_php_cnf:\n      - |\n        $ssh_user = 'cacti_client';\n        $ssh_iden = '-i /etc/cacti/id_rsa';\n\n        $nc_cmd = 'nc -q1';\n    cacti_plugin_percona_ss_get_mysql_stats_php_cnf:\n      - |\n        $mysql_user = 'cacti_client';\n        $mysql_pass = 'secret';\n        $mysql_port = 3306;\n        $mysql_socket = NULL;\n        $mysql_flags = MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT;\n        $mysql_ssl = true;\n        $mysql_ssl_key  = '/etc/mysql/client-key.pem';\n        $mysql_ssl_cert = '/etc/mysql/client-cert.pem';\n        $mysql_ssl_ca = '/etc/mysql/ca-cert.pem';\n\n        // $debug = true;\n        // $debug_log = '/tmp/ss_get_mysql_stats.log';\n```\n\n#### License\n\nMIT\n\n#### Author Information\n\n* Mischa ter Smitten\n\n#### Feedback, bug-reports, requests, ...\n\nAre [welcome](https://github.com/Oefenweb/ansible-cacti-plugin-percona/issues)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fansible-cacti-plugin-percona","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foefenweb%2Fansible-cacti-plugin-percona","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fansible-cacti-plugin-percona/lists"}