Commit d913d5ba authored by Wágner Ferenc's avatar Wágner Ferenc
Browse files

Install and use Mailman-specific monitoring plugins

parent 5649051f
......@@ -32,6 +32,9 @@
entropy: entropy
exim_mailstats: exim_mailstats
exim_mailqueue: exim_mailqueue
- nrpe_custom_checks:
check_mail_queue: /usr/lib/nagios/plugins/check_frozen
check_Mailman: /usr/bin/sudo -u list /usr/lib/nagios/plugins/check_mailman
tasks:
# This enables TAB completion of host names
......@@ -43,6 +46,23 @@
line: " HashKnownHosts no"
tags: ssh
- name: Install Mailman-specific monitoring plugins
become: yes
apt:
name: monitoring-plugins-mailman
tags: nrpe
- name: Let NRPE daemon run the Mailman check as user list
become: yes
copy:
content: |
nagios ALL = (list) NOPASSWD: /usr/lib/nagios/plugins/check_mailman
dest: /etc/sudoers.d/60_nagios_ansible
owner: root
group: root
mode: 0440
tags: nrpe
# Then:
# - add IPv6 entry to /etc/hosts
# - set up filesystem for /var/lib/mailman, preferably before installation,
......
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