diff options
author | 2024-08-28 19:17:48 +0200 | |
---|---|---|
committer | 2024-08-28 18:25:08 +0100 | |
commit | 99a8b9e2d08f7be083ccb8d78b5493b9b155ccd6 (patch) | |
tree | 24c2a3cb18acfcb85f212d87efc84d206564caad | |
parent | Include Uncle Christ's Assorted Works in mirror (diff) |
Configure PostgreSQL plugins for Munin
-rw-r--r-- | ansible/roles/munin/tasks/main.yml | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/ansible/roles/munin/tasks/main.yml b/ansible/roles/munin/tasks/main.yml index b9704c3..55f6a78 100644 --- a/ansible/roles/munin/tasks/main.yml +++ b/ansible/roles/munin/tasks/main.yml @@ -5,6 +5,8 @@ - munin - munin-node - spawn-fcgi + # Plugin packages + - libdbd-pg-perl state: present tags: - role::munin @@ -33,14 +35,33 @@ - name: Enable non-default munin plugins file: - src: "/usr/share/munin/plugins/{{ item }}" - dest: "/etc/munin/plugins/{{ item }}" + src: "/usr/share/munin/plugins/{{ item.src }}" + dest: "/etc/munin/plugins/{{ item.dest | default(item.src) }}" state: link loop: - - postfix_mailstats - - spamstats - - nginx_request - - nginx_status + # SpamAssassin + - src: spamstats + # Nginx + - src: nginx_request + - src: nginx_status + # Postfix + - src: postfix_mailstats + - src: postfix_mailqueue + - src: postfix_mailvolume + # PostgreSQL + - src: postgres_size_ + dest: postgres_size_metricity + - src: postgres_size_ + dest: postgres_size_site + - src: postgres_size_ + dest: postgres_size_ALL + - src: postgres_xlog + - src: postgres_autovacuum + - src: postgres_bgwriter + - src: postgres_checkpoints + - src: postgres_connections_db + - src: postgres_users + - src: postgres_xlog tags: - role::munin notify: |