Commit 4e834a4f authored by Chris Croome's avatar Chris Croome

get a list of disk quota users

parent 04d69f94
Pipeline #7726 passed with stage
in 20 seconds
......@@ -27,4 +27,9 @@
register: munin_quota_disk
tags:
- munin
- name: Get the names of users with quotas
shell: repquota -u -O csv /dev/xvda4 | grep -v ^User | grep -v 0,$ | awk -F, '{ print $1 }' | xargs
register: munin_quota_users
when: ( munin_quota_disk is defined ) and ( munin_quota_disk != "" )
...
......@@ -171,4 +171,8 @@ env.names {% if munin_multips_memory_processes is defined %}{{ munin_multips_mem
env.names {% if munin_multips_processes is defined %}{{ munin_multips_processes }}{% endif %}
env.regex_php ^[0-9]* php
{% if munin_quota_users is defined %}
[quota2percent_*]
user {{ munin_quota_users.stdout }}
{% endif %}
# vim: syntax=dosini
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment