Commit 01652da8 authored by Chris Croome's avatar Chris Croome

test using c version of some plugins

parent cb7697cb
Pipeline #7716 failed with stage
in 20 seconds
......@@ -2,6 +2,8 @@
Ansible role for configuring a Debian or Ubuntu server as a munin Node (client).
See [the defalts file](defaults/main.yml) for the settings.
Assuming you have a YAML `hosts.yml` file then you should add entries something like this to it:
```yml
......@@ -30,3 +32,7 @@ all:
```
In order to use this role.
Some inspiration for this role was taken from
[systemli](https://github.com/systemli/ansible-role-munin-node) and
[geerlingguy](https://github.com/geerlingguy/ansible-role-munin-node) roles.
---
# If the following two variabled are not set then the phpfpm_version.yml
# tasks will automatically set values for these variables
# munin_phpfpm_version: 7.3
# munin_phpfpm_socket: /var/run/php/php7.3-fpm.sock
#
# The following two defaults are for a [WSH](https://git.coop/webarch/wsh)
# Debian Buster server.
munin_multips_processes: apache2 php mysqld
munin_multips_memory_processes: apache2 php-fpm7.3 mysqld
#
# Plugins where the symlink and file are the same just need a name, plugins
# that have a different file need file: and plugins not in
# /usr/share/munin/plugins need a dir:
munin_plugins_disabled:
- name: entropy
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: nginx_request
- name: nginx_status
- name: phpfpm_average
......@@ -26,9 +38,41 @@ munin_plugins_disabled:
dir: /usr/local/share/munin/plugins
munin_plugins_enabled:
- name: apt_all
- name: cpu
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: df
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: df_inode
- name: diskstats
- name: forks
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: fw_packets
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: interrupts
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: load
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: open_files
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: open_inodes
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: swap
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: threads
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: uptime
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
- name: multips
- name: multips_memory
- name: php_opcache_memoryusage
......@@ -77,16 +121,4 @@ munin_plugins_enabled:
file: mysql_
- name: mysql_tmp_tables
file: mysql_
# munin_multips_processes: apache2 php mysqld
# munin_multips_memory: true
# munin_multips_memory_processes: apache2 php-fpm7.3 mysqld
# munin_nginx: false
# munin_apache: false
# munin_phpfpm: false
# If the following two variabled are not set then the phpfpm_version.yml
# tasks will automatically set values for these variables
# munin_phpfpm_version: 7.3
# munin_phpfpm_socket: /var/run/php/php7.3-fpm.sock
# munin_phpfpm_multi: false
# munin_opcache: false
...
......@@ -33,6 +33,7 @@
- munin-node
- munin-plugins-core
- munin-plugins-extra
- munin-plugins-c
- libwww-perl
- time
- libcache-cache-perl
......
---
- name: Check if php-fpm is installed
shell: "dpkg -s php{% if munin_debian_version == 'stretch' %}7.0{% elif munin_debian_version == 'buster' %}7.3{% elif munin_debian_version == 'bionic' %}7.2{% endif %}-fpm | grep ^Status | awk '{ print $4 }'"
shell: "dpkg -s php{% if munin_debian_version == 'stretch' or munin_debian_version == 'xenian' %}7.0{% elif munin_debian_version == 'bionic' %}7.2{% elif munin_debian_version == 'buster' %}7.3{% endif %}-fpm | grep ^Status | awk '{ print $4 }'"
register: munin_phpfpm_status
changed_when: false
tags:
......
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