Add whitelist settings for `libs` plugin.
Allow to set some processes that won't be monitored by the `libs` plugin and set some default ones (sssd,…).
This commit is contained in:
parent
d32d9aeedd
commit
91e6822ee7
|
@ -1,9 +1,10 @@
|
|||
|
||||
## v1.X
|
||||
## v1.1
|
||||
|
||||
## Enhancements
|
||||
* Add possibility to install `mq` dependancies.
|
||||
* Add possibility to install `libs` dependancies.
|
||||
* Add whitelist settings for `libs` plugin.
|
||||
|
||||
## v1.0.1
|
||||
|
||||
|
|
|
@ -35,6 +35,9 @@ Manage Xymon (client) installation and configuration.
|
|||
* **xymon_plug_libs_package** : The packages to install to provide `libs` plugin [default : `[ 'binutils', 'lsof', 'libyaml-tiny-perl', 'libsort-naturally-perl' ]`].
|
||||
* **xymon_plug_libs_path** : Configuration file for the `libs` plugin [default : `/etc/xymon/clientlaunch.d/libs.cfg`].
|
||||
* **xymon_plug_libs_tpl** : Template used to generate the previous config file [default : `etc/xymon/clientlaunch.d/libs.cfg.j2`].
|
||||
* **xymon_plug_libs_default_whitelist** : Default whitelist of processes that should not be monitored with `libs` plugin.
|
||||
* **xymon_plug_libs_group_whitelist** : Group whitelist of processes that should not be monitored with `libs` plugin.
|
||||
* **xymon_plug_libs_host_whitelist** : Host whitelist of processes that should not be monitored with `libs` plugin.
|
||||
|
||||
### OS Specific Variables
|
||||
|
||||
|
|
|
@ -20,13 +20,34 @@ xymon_cli_service_enabled: true
|
|||
# server
|
||||
xymon_srv_list: "monitoring.{{ ansible_domain }}"
|
||||
|
||||
# plugins
|
||||
# plugins {{{
|
||||
xymon_plug_manage: true
|
||||
|
||||
## mq {{{
|
||||
xymon_plug_mq_state: true
|
||||
xymon_plug_mq_package: [ 'libtimedate-perl' ]
|
||||
xymon_plug_mq_path: '/etc/xymon/clientlaunch.d/mq.cfg'
|
||||
xymon_plug_mq_tpl: 'etc/xymon/clientlaunch.d/mq.cfg.j2'
|
||||
## }}}
|
||||
|
||||
# libs {{{
|
||||
xymon_plug_libs_state: true
|
||||
xymon_plug_libs_package: [ 'binutils', 'lsof', 'libyaml-tiny-perl', 'libsort-naturally-perl' ]
|
||||
xymon_plug_libs_path: '/etc/xymon/clientlaunch.d/libs.cfg'
|
||||
xymon_plug_libs_tpl: 'etc/xymon/clientlaunch.d/libs.cfg.j2'
|
||||
|
||||
xymon_plug_libs_default_whitelist:
|
||||
/lib/systemd/systemd:
|
||||
- '.*'
|
||||
/usr/lib/x86_64-linux-gnu/sssd/sssd_be:
|
||||
- '.*'
|
||||
/usr/sbin/sssd:
|
||||
- '.*'
|
||||
/sbin/multipathd:
|
||||
- '.*'
|
||||
xymon_plug_libs_group_whitelist: {}
|
||||
xymon_plug_libs_host_whitelist: {}
|
||||
|
||||
## }}}
|
||||
#
|
||||
# }}}
|
||||
|
|
|
@ -81,4 +81,15 @@
|
|||
mode: 0644
|
||||
when: xymon_plug_manage
|
||||
notify: restart xymon-client service
|
||||
|
||||
- name: PLUGIN libs whitelist
|
||||
template:
|
||||
src: 'etc/xymon/libs.local.yaml.j2'
|
||||
dest: '/etc/xymon/libs.local.yaml'
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when: xymon_plug_manage
|
||||
notify: restart xymon-client service
|
||||
|
||||
# }}}
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
# {{ ansible_managed }}
|
||||
{% set inputmerged = xymon_plug_libs_default_whitelist.copy() %}
|
||||
{% set _ = inputmerged.update(xymon_plug_libs_group_whitelist) %}
|
||||
{% set _ = inputmerged.update(xymon_plug_libs_host_whitelist) %}
|
||||
---
|
||||
whitelist:
|
||||
{% for group, rules in inputmerged|dictsort %}
|
||||
{{ group }}:
|
||||
{% if not rules %}
|
||||
# (none)
|
||||
{% endif %}
|
||||
{% for rule in rules %}
|
||||
- '{{ rule }}'
|
||||
{% endfor %}
|
||||
{% endfor %}
|
Loading…
Reference in New Issue