Go to file
Pierre D 6af79c5d13 Added email alerts to configuration 2014-11-14 12:18:19 +01:00
defaults Added email alerts to configuration 2014-11-14 12:18:19 +01:00
handlers Initial commit of munin role for RedHat/CentOS. 2014-05-11 13:10:54 -05:00
meta Updates to get role working correctly under Debian/Ubuntu. 2014-05-11 22:32:24 -05:00
tasks Updates to get role working correctly under Debian/Ubuntu. 2014-05-11 22:32:24 -05:00
templates Added email alerts to configuration 2014-11-14 12:18:19 +01:00
tests Initial commit of munin role for RedHat/CentOS. 2014-05-11 13:10:54 -05:00
vars Updates to get role working correctly under Debian/Ubuntu. 2014-05-11 22:32:24 -05:00
.travis.yml Update test. 2014-11-08 14:35:52 -06:00
README.md Added email alerts to configuration 2014-11-14 12:18:19 +01:00

README.md

Ansible Role: Munin

Build Status

Installs munin, a monitoring system, on RedHat/CentOS or Debian/Ubuntu Linux servers.

Requirements

If you are running a RedHat-based distribution, you need to install the EPEL repository, which can be simply installed via the geerlingguy.repo-epel role.

If you would like to view munin's graphs and output via HTTP, you will need an HTTP server like Apache or Nginx running.

Role Variables

Available variables are listed below, along with default values (see vars/main.yml):

munin_dbdir: /var/lib/munin
munin_htmldir: /var/www/html/munin
munin_logdir: /var/log/munin
munin_rundir: /var/run/munin
munin_includedir: /etc/munin/conf.d

Some default locations for Munin-generated files, configurations, logs, etc.

munin_html_strategy: cron
munin_max_processes: 12

See the official Munin documentation for munin.conf for more information on these and other optional directives.

munin_admin_user: munin
munin_admin_password: munin

These values will be used to generate a user via htpasswd under which the munin pages will be password protected with basic HTTP authentication.

munin_hosts:
  - {
    name: "localhost",
    address: "127.0.0.1",
    extra: ["use_node_name yes"]
  }

A listing of hosts to which munin will connect and monitor. Each item in the list will be added to your munin configuration like the following (assuming you're using the above example):

[localhost]
  address: 127.0.0.1
  use_node_name yes

See documentation for Munin Node Definitions for more details as to what values to use here.

You can enable mail alerts by adding :

munin_alerts:
  - {
    name: "John Doe",
    email: "johndoe@example.com",
    subject: "Munin-notification for ${var:group} :: ${var:host}",
    level: "warning critical"
  }

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
    - { role: geerlingguy.munin }

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.