diff options
author | 2024-08-28 05:32:47 +0100 | |
---|---|---|
committer | 2024-08-28 17:50:41 +0100 | |
commit | 3fc0ed2c418446c3a4ec4b0e3051656f27538c6e (patch) | |
tree | 01c821dfec69caf702a86db1ea5540201ff9faea | |
parent | Add nginx status stub listener (diff) |
Enable some plugins for mail, spam and NGINX
Also, disable some wrongly autodetected radio related plugins, I think
this seems to automatically enable based off a port being open but all
the logs were obviously just invalid responses.
-rw-r--r-- | ansible/roles/munin/tasks/main.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ansible/roles/munin/tasks/main.yml b/ansible/roles/munin/tasks/main.yml index 613b1a2..91f5966 100644 --- a/ansible/roles/munin/tasks/main.yml +++ b/ansible/roles/munin/tasks/main.yml @@ -32,3 +32,35 @@ - role::munin notify: - Restart munin-node service + +- name: Enable non-default munin plugins + file: + src: "/usr/share/munin/plugins/{{ item }}" + dest: "/etc/munin/plugins/{{ item }}" + state: link + loop: + - postfix_mailstats + - spamstats + - nginx_request + - nginx_status + tags: + - role::munin + notify: + - Restart munin-node service + +- name: Disable some unneeded plugins + file: + path: "/etc/munin/plugins/{{ item }}" + state: absent + loop: + - squeezebox_albums + - squeezebox_artists + - squeezebox_genres + - squeezebox_signalstrength + - squeezebox_songs + - squeezebox_volume + - squeezebox_years + tags: + - role::munin + notify: + - Restart munin-node service |