2017-08-11 13:58:39 +02:00
|
|
|
---
|
2018-06-22 15:24:32 +02:00
|
|
|
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
2017-08-11 13:58:39 +02:00
|
|
|
|
2018-06-22 15:24:32 +02:00
|
|
|
# ipr.ansible.xymon default variables [[[
|
|
|
|
# =======================================
|
|
|
|
|
|
|
|
# Packages and installation [[[
|
|
|
|
# -----------------------------
|
|
|
|
|
2020-11-03 15:17:08 +01:00
|
|
|
# .. envvar:: xymon_cli__manage [[[
|
2018-06-22 15:24:32 +02:00
|
|
|
#
|
|
|
|
# If this role should manage the installation of Xymon client
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__manage: true
|
2018-06-22 15:24:32 +02:00
|
|
|
# ]]]
|
2020-11-03 15:17:08 +01:00
|
|
|
# .. envvar:: xymon_cli__pkg_state [[[
|
2018-06-22 15:24:32 +02:00
|
|
|
#
|
|
|
|
# What is the desired state which this role's packages should be?
|
|
|
|
# Possible options:
|
|
|
|
#
|
2018-07-25 15:12:50 +02:00
|
|
|
# ``present``
|
2018-06-22 15:24:32 +02:00
|
|
|
# Default. Ensure the packages are installed.
|
|
|
|
#
|
|
|
|
# ``absent``
|
|
|
|
# Ensure to remove the packages.
|
|
|
|
#
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__pkg_state: 'present'
|
2018-06-22 15:24:32 +02:00
|
|
|
# ]]]
|
|
|
|
# ]]]
|
|
|
|
# Server configuration and service [[[
|
|
|
|
# ------------------------------------
|
2017-08-11 14:14:51 +02:00
|
|
|
|
2017-08-11 14:33:31 +02:00
|
|
|
## conf
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__default_conf_path: '/etc/default/xymon-client'
|
|
|
|
xymon_cli__default_conf_tpl: 'etc/default/xymon-client.j2'
|
|
|
|
xymon_cli__hostname: "{{ ansible_fqdn }}"
|
|
|
|
xymon_cli__user_groups: 'xymon'
|
2017-08-11 14:33:31 +02:00
|
|
|
|
2017-08-11 14:14:51 +02:00
|
|
|
## service
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__service_manage: true
|
|
|
|
xymon_cli__service_name: 'xymon-client'
|
|
|
|
xymon_cli__service_enabled: true
|
2017-08-11 14:48:46 +02:00
|
|
|
|
|
|
|
# server
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__srv_list: "monitoring.{{ ansible_domain }}"
|
2018-06-22 15:24:32 +02:00
|
|
|
# ]]]
|
|
|
|
# Plugins management [[[
|
|
|
|
# ----------------------
|
2017-09-04 17:24:40 +02:00
|
|
|
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__plug_manage: true
|
2018-02-08 17:28:49 +01:00
|
|
|
|
2018-06-22 15:24:32 +02:00
|
|
|
## Plugin apt [[[
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__plug_apt_state: true
|
|
|
|
xymon_cli__plug_apt_package: [ 'aptitude', 'dctrl-tools' ]
|
|
|
|
xymon_cli__plug_apt_path: '/etc/xymon/clientlaunch.d/apt.cfg'
|
|
|
|
xymon_cli__plug_apt_tpl: 'etc/xymon/clientlaunch.d/apt.cfg.j2'
|
|
|
|
xymon_cli__plug_apt_interval: '5m'
|
|
|
|
xymon_cli__plug_apt_default_whitelist: []
|
|
|
|
xymon_cli__plug_apt_whitelist: []
|
|
|
|
xymon_cli__plug_apt_group_whitelist: []
|
|
|
|
xymon_cli__plug_apt_host_whitelist: []
|
|
|
|
xymon_cli__plug_apt_combined_whitelist: '{{ xymon_cli__plug_apt_default_whitelist
|
|
|
|
+ xymon_cli__plug_apt_whitelist
|
|
|
|
+ xymon_cli__plug_apt_group_whitelist
|
|
|
|
+ xymon_cli__plug_apt_host_whitelist }}'
|
2018-09-12 10:25:31 +02:00
|
|
|
|
2018-06-22 15:24:32 +02:00
|
|
|
## ]]]
|
2018-07-13 12:45:20 +02:00
|
|
|
## Plugin ipmi [[[
|
|
|
|
xymon_cli__plug_ipmi_state: false
|
|
|
|
xymon_cli__plug_ipmi_package: ['ipmitool']
|
|
|
|
xymon_cli__plug_ipmi_path: '/etc/xymon/clientlaunch.d/ipmi.cfg'
|
|
|
|
xymon_cli__plug_ipmi_tpl: 'etc/xymon/clientlaunch.d/ipmi.cfg.j2'
|
2019-05-24 09:16:07 +02:00
|
|
|
xymon_cli__plug_ipmi_interval: '5m'
|
2020-11-03 13:31:35 +01:00
|
|
|
|
2018-07-13 12:45:20 +02:00
|
|
|
## ]]]
|
2018-06-22 15:24:32 +02:00
|
|
|
## Plugin libs [[[
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__plug_libs_state: true
|
|
|
|
xymon_cli__plug_libs_package: [ 'binutils', 'lsof', 'libyaml-tiny-perl', 'libfile-slurp-perl', 'libsort-naturally-perl' ]
|
|
|
|
xymon_cli__plug_libs_path: '/etc/xymon/clientlaunch.d/libs.cfg'
|
|
|
|
xymon_cli__plug_libs_tpl: 'etc/xymon/clientlaunch.d/libs.cfg.j2'
|
|
|
|
xymon_cli__plug_libs_interval: '5m'
|
2018-02-08 17:28:49 +01:00
|
|
|
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__plug_libs_default_whitelist:
|
2018-02-08 17:28:49 +01:00
|
|
|
/lib/systemd/systemd:
|
|
|
|
- '.*'
|
|
|
|
/usr/lib/x86_64-linux-gnu/sssd/sssd_be:
|
|
|
|
- '.*'
|
2020-04-29 14:31:40 +02:00
|
|
|
/usr/lib/x86_64-linux-gnu/sssd/sssd_autofs:
|
|
|
|
- '.*'
|
|
|
|
/usr/lib/x86_64-linux-gnu/sssd/sssd_nss:
|
|
|
|
- '.*'
|
|
|
|
/usr/lib/x86_64-linux-gnu/sssd/sssd_pam:
|
|
|
|
- '.*'
|
2018-02-08 17:28:49 +01:00
|
|
|
/usr/sbin/sssd:
|
|
|
|
- '.*'
|
|
|
|
/sbin/multipathd:
|
|
|
|
- '.*'
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__plug_libs_whitelist: {}
|
|
|
|
xymon_cli__plug_libs_group_whitelist: {}
|
|
|
|
xymon_cli__plug_libs_host_whitelist: {}
|
2018-02-08 17:28:49 +01:00
|
|
|
|
2018-06-22 16:04:32 +02:00
|
|
|
# ]]]
|
2020-11-02 18:04:12 +01:00
|
|
|
## Plugin Megaraid [[[
|
|
|
|
xymon_cli__plug_megaraid_state: false
|
|
|
|
xymon_cli__plug_megaraid_package: [ 'libipc-run-perl' ]
|
|
|
|
xymon_cli__plug_megaraid_path: '/etc/xymon/clientlaunch.d/megaraid.cfg'
|
|
|
|
xymon_cli__plug_megaraid_tpl: 'etc/xymon/clientlaunch.d/megaraid.cfg.j2'
|
|
|
|
xymon_cli__plug_megaraid_interval: '5m'
|
2020-11-03 13:31:35 +01:00
|
|
|
|
2020-11-02 18:04:12 +01:00
|
|
|
## ]]]
|
2019-05-24 09:16:07 +02:00
|
|
|
## Plugin mq [[[
|
2020-11-03 15:17:08 +01:00
|
|
|
xymon_cli__plug_mq_state: true
|
|
|
|
xymon_cli__plug_mq_package: ['libtimedate-perl']
|
|
|
|
xymon_cli__plug_mq_path: '/etc/xymon/clientlaunch.d/mq.cfg'
|
|
|
|
xymon_cli__plug_mq_tpl: 'etc/xymon/clientlaunch.d/mq.cfg.j2'
|
|
|
|
xymon_cli__plug_mq_interval: '5m'
|
2020-11-03 13:31:35 +01:00
|
|
|
|
2019-05-24 09:16:07 +02:00
|
|
|
## ]]]
|
2020-10-29 17:52:19 +01:00
|
|
|
## Plugin net [[[
|
|
|
|
xymon_cli__plug_net_state: false
|
|
|
|
xymon_cli__plug_net_package: [ 'ethtool', 'iproute2', 'libfile-slurp-perl', 'libfile-which-perl', 'libipc-run-perl', 'libyaml-tiny-perl' ]
|
|
|
|
xymon_cli__plug_net_path: '/etc/xymon/clientlaunch.d/net.cfg'
|
|
|
|
xymon_cli__plug_net_tpl: 'etc/xymon/clientlaunch.d/net.cfg.j2'
|
|
|
|
xymon_cli__plug_net_interval: '5m'
|
2020-10-30 12:41:24 +01:00
|
|
|
xymon_cli__plug_net_conf_path: '/etc/xymon/net.yaml'
|
|
|
|
xymon_cli__plug_net_conf_tpl: 'etc/xymon/net.yaml.j2'
|
2020-11-03 13:31:35 +01:00
|
|
|
|
2020-10-29 17:52:19 +01:00
|
|
|
## ]]]
|
2019-05-24 09:49:54 +02:00
|
|
|
## Plugin netstats [[[
|
|
|
|
xymon_cli__plug_netstats_state: false
|
|
|
|
xymon_cli__plug_netstats_path: '/etc/xymon/clientlaunch.d/netstats.cfg'
|
|
|
|
xymon_cli__plug_netstats_tpl: 'etc/xymon/clientlaunch.d/netstats.cfg.j2'
|
|
|
|
xymon_cli__plug_netstats_interval: '5m'
|
2020-10-30 12:41:24 +01:00
|
|
|
|
2020-12-22 13:13:31 +01:00
|
|
|
## ]]]
|
|
|
|
## Plugin ntpq [[[
|
|
|
|
xymon_cli__plug_ntpq_state: true
|
|
|
|
xymon_cli__plug_ntpq_path: '/etc/xymon/clientlaunch.d/ntpq.cfg'
|
|
|
|
xymon_cli__plug_ntpq_tpl: 'etc/xymon/clientlaunch.d/ntpq.cfg.j2'
|
|
|
|
xymon_cli__plug_ntpq_interval: '5m'
|
|
|
|
|
2019-05-24 09:49:54 +02:00
|
|
|
## ]]]
|
2020-06-09 13:57:50 +02:00
|
|
|
## Plugin SGE [[[
|
|
|
|
### From https://git.ipr.univ-rennes1.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/sge.sh
|
|
|
|
xymon_cli__plug_sge_state: False
|
|
|
|
xymon_cli__plug_sge_script_path: '/usr/lib/xymon/client/ext/sge.sh'
|
|
|
|
xymon_cli__plug_sge_script_tpl: 'usr/lib/xymon/client/ext/sge.sh.j2'
|
|
|
|
xymon_cli__plug_sge_script_url: ''
|
|
|
|
xymon_cli__plug_sge_path: '/etc/xymon/clientlaunch.d/sge.cfg'
|
|
|
|
xymon_cli__plug_sge_tpl: 'etc/xymon/clientlaunch.d/sge.cfg.j2'
|
|
|
|
xymon_cli__plug_sge_interval: '5m'
|
|
|
|
|
|
|
|
# ]]]
|
2020-02-25 15:22:37 +01:00
|
|
|
## Plugin smartoverall [[[
|
|
|
|
### From https://git.ipr.univ-rennes1.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/smartoverall
|
|
|
|
### And based on https://www.xymon.com/xymon-cgi/viewconf.sh?smart
|
|
|
|
### Mostly for disks unknown from smartmontools's database
|
|
|
|
xymon_cli__plug_smartoverall_state: False
|
|
|
|
xymon_cli__plug_smartoverall_package: [ 'smartmontools' ]
|
|
|
|
xymon_cli__plug_smartoverall_script_path: '/usr/lib/xymon/client/ext/smartoverall'
|
|
|
|
xymon_cli__plug_smartoverall_script_tpl: 'usr/lib/xymon/client/ext/smartoverall.j2'
|
2020-03-05 15:23:29 +01:00
|
|
|
xymon_cli__plug_smartoverall_script_url: ''
|
2020-02-25 15:22:37 +01:00
|
|
|
xymon_cli__plug_smartoverall_path: '/etc/xymon/clientlaunch.d/smartoverall.cfg'
|
|
|
|
xymon_cli__plug_smartoverall_tpl: 'etc/xymon/clientlaunch.d/smartoverall.cfg.j2'
|
|
|
|
xymon_cli__plug_smartoverall_interval: '10m'
|
|
|
|
|
|
|
|
# ]]]
|
2020-02-18 14:24:31 +01:00
|
|
|
## Plugin smart [[[
|
|
|
|
### From https://github.com/skazi0/xymon-plugins
|
|
|
|
xymon_cli__plug_smart_state: False
|
|
|
|
xymon_cli__plug_smart_package: [ 'smartmontools' ]
|
|
|
|
xymon_cli__plug_smart_script_path: '/usr/lib/xymon/client/ext/smart'
|
|
|
|
xymon_cli__plug_smart_script_tpl: 'usr/lib/xymon/client/ext/smart.j2'
|
2020-03-05 15:23:29 +01:00
|
|
|
xymon_cli__plug_smart_script_url: ''
|
2020-02-18 14:24:31 +01:00
|
|
|
xymon_cli__plug_smart_path: '/etc/xymon/clientlaunch.d/smart.cfg'
|
|
|
|
xymon_cli__plug_smart_tpl: 'etc/xymon/clientlaunch.d/smart.cfg.j2'
|
|
|
|
xymon_cli__plug_smart_interval: '10m'
|
|
|
|
|
2020-10-28 11:05:51 +01:00
|
|
|
# ]]]
|
|
|
|
## Plugin temp [[[
|
|
|
|
### Enable by default on hardware host
|
|
|
|
xymon_cli__plug_temp_state: False
|
|
|
|
xymon_cli__plug_temp_package: [ 'libfile-which-perl', 'libyaml-tiny-perl', 'hddtemp', 'smartmontools', 'libxml-twig-perl' ]
|
2020-11-03 17:48:21 +01:00
|
|
|
# Define xymon_cli__plug_temp_extra_package in your own inventory.
|
|
|
|
# See Nvidia support in README for more informations
|
|
|
|
#xymon_cli__plug_temp_extra_package: [ 'nvidia-smi' ]
|
2020-10-28 11:05:51 +01:00
|
|
|
xymon_cli__plug_temp_path: '/etc/xymon/clientlaunch.d/temp.cfg'
|
|
|
|
xymon_cli__plug_temp_tpl: 'etc/xymon/clientlaunch.d/temp.cfg.j2'
|
|
|
|
xymon_cli__plug_temp_interval: '5m'
|
|
|
|
|
2020-02-18 14:24:31 +01:00
|
|
|
# ]]]
|
2018-06-22 16:04:32 +02:00
|
|
|
## Plugin zfs [[[
|
|
|
|
xymon_cli__plug_zfs_state: false
|
|
|
|
xymon_cli__plug_zfs_script_path: '/usr/lib/xymon/client/ext/zfs'
|
|
|
|
xymon_cli__plug_zfs_script_tpl: 'usr/lib/xymon/client/ext/zfs.j2'
|
|
|
|
xymon_cli__plug_zfs_path: '/etc/xymon/clientlaunch.d/zfs.cfg'
|
|
|
|
xymon_cli__plug_zfs_tpl: 'etc/xymon/clientlaunch.d/zfs.cfg.j2'
|
2019-05-24 09:16:07 +02:00
|
|
|
xymon_cli__plug_zfs_interval: '5m'
|
2018-06-22 16:04:32 +02:00
|
|
|
|
2018-06-22 15:24:32 +02:00
|
|
|
# ]]]
|
|
|
|
|
2020-11-03 10:09:48 +01:00
|
|
|
# .. envvar:: xymon_cli__plug_combined_packages [[[
|
|
|
|
#
|
2020-11-03 17:41:37 +01:00
|
|
|
# Combine all packages vars related to plugins (only enabled plugins).
|
2020-11-03 10:09:48 +01:00
|
|
|
#
|
2020-11-03 17:48:21 +01:00
|
|
|
xymon_cli__plug_combined_packages: '{{ ((xymon_cli__plug_pkg_list|d([]) if xymon_cli__plug_manage|bool else [])
|
|
|
|
+ (xymon_cli__plug_apt_package if xymon_cli__plug_apt_state|bool else [])
|
|
|
|
+ (xymon_cli__plug_ipmi_package if xymon_cli__plug_ipmi_state|bool else [])
|
|
|
|
+ (xymon_cli__plug_libs_package if xymon_cli__plug_libs_state|bool else [])
|
|
|
|
+ (xymon_cli__plug_megaraid_package if xymon_cli__plug_megaraid_state|bool else [])
|
|
|
|
+ (xymon_cli__plug_mq_package if xymon_cli__plug_mq_state|bool else [])
|
|
|
|
+ (xymon_cli__plug_net_package if xymon_cli__plug_net_state|bool else [])
|
|
|
|
+ (xymon_cli__plug_smartoverall_package if xymon_cli__plug_smartoverall_state|bool else [])
|
|
|
|
+ (xymon_cli__plug_smart_package if xymon_cli__plug_smart_state|bool else [])
|
|
|
|
+ (xymon_cli__plug_temp_package if xymon_cli__plug_temp_state|bool else [])
|
|
|
|
+ (xymon_cli__plug_temp_extra_package|d([]) if xymon_cli__plug_temp_state|bool else []))
|
2020-11-03 10:09:48 +01:00
|
|
|
| sort | unique }}'
|
|
|
|
# ]]]
|
2020-11-03 13:31:35 +01:00
|
|
|
# .. envvar:: xymon_cli__plug_combined_clientlaunch [[[
|
|
|
|
#
|
|
|
|
# Combine clientlaunch files for all plugins
|
|
|
|
#
|
|
|
|
xymon_cli__plug_combined_clientlaunch:
|
|
|
|
- name: apt
|
2020-11-03 15:17:08 +01:00
|
|
|
path: '{{ xymon_cli__plug_apt_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_apt_tpl }}'
|
2020-11-03 13:31:35 +01:00
|
|
|
- name: ipmi
|
|
|
|
path: '{{ xymon_cli__plug_ipmi_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_ipmi_tpl }}'
|
|
|
|
- name: libs
|
2020-11-03 15:17:08 +01:00
|
|
|
path: '{{ xymon_cli__plug_libs_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_libs_tpl }}'
|
2020-11-03 13:31:35 +01:00
|
|
|
- name: megaraid
|
|
|
|
path: '{{ xymon_cli__plug_megaraid_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_megaraid_tpl }}'
|
|
|
|
- name: mq
|
2020-11-03 15:17:08 +01:00
|
|
|
path: '{{ xymon_cli__plug_mq_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_mq_tpl }}'
|
2020-11-03 13:31:35 +01:00
|
|
|
- name: net
|
|
|
|
path: '{{ xymon_cli__plug_net_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_net_tpl }}'
|
|
|
|
- name: netstats
|
|
|
|
path: '{{ xymon_cli__plug_netstats_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_netstats_tpl }}'
|
2020-12-22 13:13:31 +01:00
|
|
|
- name: ntpq
|
|
|
|
path: '{{ xymon_cli__plug_ntpq_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_ntpq_tpl }}'
|
2020-11-03 13:31:35 +01:00
|
|
|
- name: sge
|
|
|
|
path: '{{ xymon_cli__plug_sge_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_sge_tpl }}'
|
|
|
|
- name: smartoverall
|
|
|
|
path: '{{ xymon_cli__plug_smartoverall_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_smartoverall_tpl }}'
|
|
|
|
- name: smart
|
|
|
|
path: '{{ xymon_cli__plug_smart_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_smart_tpl }}'
|
|
|
|
- name: temp
|
|
|
|
path: '{{ xymon_cli__plug_temp_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_temp_tpl }}'
|
|
|
|
- name: zfs
|
|
|
|
path: '{{ xymon_cli__plug_zfs_path }}'
|
|
|
|
template: '{{ xymon_cli__plug_temp_tpl }}'
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
2018-06-22 15:24:32 +02:00
|
|
|
# ]]]
|
|
|
|
# ]]]
|