Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

buluma/ansible-role-munin_node

Ansible role munin_node

Munin node monitoring endpoint for RedHat/CentOS or Debian/Ubuntu.

GitHub Version Issues Pull Requests Downloads
github Version Issues PullRequests Ansible Role

This example is taken from molecule/default/converge.yml and is tested on each push, pull request and release.

---
- name: Converge
  hosts: all
  become: true

  vars:
    munin_node_allowed_cidrs: ['10.0.0.0/8', '2001:db8::/32']
    munin_node_denied_cidrs: ['10.42.0.0/16', '2001:db8:42::/48']
    munin_node_plugins:
      - name: uptime
      - name: if_eth1
        plugin: if_

    munin_node_config: {
      "ps_test": {
        "env.regex": "bash",
        "env.name": "bash"
      }
    }

  roles:
    - role: buluma.munin_node

The machine needs to be prepared. In CI this is done using molecule/default/prepare.yml:

---
- name: Converge
  hosts: all
  become: true

  roles:
    - role: buluma.bootstrap
    - role: buluma.repo_epel

Also see a full explanation and example on how to use these roles.

The default values for the variables are set in defaults/main.yml:

---
munin_node_bind_host: "*"
munin_node_bind_port: "4949"

munin_node_host_name: ''

# Munin requires IPs be added as regular expressions.
munin_node_allowed_ips:
  - '^127\.0\.0\.1$'
  - '^::1$'

munin_node_allowed_cidrs: []
munin_node_denied_cidrs: []

# Source and destination of munin plugins.
munin_plugin_src_path: /usr/share/munin/plugins/
munin_plugin_dest_path: /etc/munin/plugins/

# List of munin plugins to enable.
munin_node_plugins: []
# - name: uptime
# - name: if_eth0
#   plugin: if_
# - name: ps_test
#   plugin: ps_

# List of munin plugins to install.
munin_node_install_plugins: []
# - src: files/munin/redis_
# - remote_src: https://raw.githubusercontent.com/ohitz/phpfpm-multi-munin-plugin/master/phpfpm-multi

# Plugin configuration options (the key is the plugin heading, items within will
# be options for the plugin).
munin_node_config: {
# "ps_test": {
#   "env.regex": "bash",
#   "env.name": "bash"
# }
}

The following roles are used to prepare a system. You can prepare your system in another way.

Requirement GitHub Version
buluma.bootstrap Ansible Molecule Version
buluma.repo_epel Ansible Molecule Version

This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.

Here is an overview of related roles:

dependencies

This role has been tested on these container images:

container tags
EL all
Debian all
Ubuntu all

The minimum version of Ansible required is 2.1, tests have been done to:

  • The previous version.
  • The current version.
  • The development version.

If you find issues, please register them in GitHub

Role History

Apache-2.0

Shadow Walker

About

Munin node monitoring endpoint for RedHat/CentOS or Debian/Ubuntu.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages