Compare commits

..

11 Commits

Author SHA1 Message Date
Jeremy Gardais 202ada89cd
Fix "Can't check kernel version" warning message
On Ubuntu only by default.
2025-03-24 13:31:46 +01:00
Jeremy Gardais 56ddaab1fd Merge pull request 'refresh-2024' (#1) from refresh-2024 into master
Reviewed-on: #1
2024-09-30 16:30:19 +02:00
Jeremy Gardais b7f9be38a4
Update SSSD path for libs white list 2024-09-30 16:29:50 +02:00
Jeremy Gardais 38ffb9af77
Allow multi-lines with ansible_managed | comment 2024-09-30 16:29:04 +02:00
Jeremy Gardais 745f3bd3a6
Update domain for git.ipr 2023-11-03 16:08:32 +01:00
Jeremy Gardais e4e2518625
Remove hddtemp dependency
Package is no longer available in Debian Bookworm and can be replaced by
 **drivetemp** kernel module (working since Debian Bullseye 👍).
2023-04-27 13:52:15 +02:00
Jeremy Gardais 5a87fc07fb
20230301 Update dependencies for libs probe 2023-04-26 14:47:00 +02:00
Jeremy Gardais 241ecaac17
Add new kern probe management 2023-04-26 14:20:22 +02:00
Jeremy Gardais c6115085a9
Prefix module with "ansible.builtin." 2023-01-24 11:50:15 +01:00
Jeremy Gardais af8963bb47
Use flatten to manage packages list 2023-01-24 11:45:30 +01:00
Jeremy Gardais 23a0dfa558
Works with Debian Bullseye 2021-11-17 13:51:22 +01:00
28 changed files with 167 additions and 62 deletions

View File

@ -1,3 +1,35 @@
## v2.3.0
### Enhancements
* Add variable/template to fix **kern**'s probe related message on Ubuntu
(`Can't check kernel version!`)
* See : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725/comments/35
## v2.2.0
### Enhancements
* Use **comment** filter for ansible_managed, to allow multi-lines.
* Update SSSD path for libs white list.
## v2.1.0
### Enhancements
* Add new kern probe management.
* Update dependencies for libs probe after hobbit-plugins 20230301 upgrade
### Removed
* Remove hddtemp dependency. Package is no longer available in Debian Bookworm
and replaced by **drivetemp** kernel module (working since Debian Bullseye).
## v2.0.3
### Fix
* Use flatten to manage packages list.
* Prefix module with "ansible.builtin.".
### Enhancements
* Works with Debian Bullseye
## v2.0.2 ## v2.0.2
### Fix ### Fix
@ -37,7 +69,7 @@
### Enhancements ### Enhancements
* Possibility to define URLs in order to get the latest version of SMART's scripts. * Possibility to define URLs in order to get the latest version of SMART's scripts.
* Add sge plugin from https://git.ipr.univ-rennes1.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/sge.sh * Add sge plugin from https://git.ipr.univ-rennes.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/sge.sh
## v1.4.0 ## v1.4.0
@ -45,7 +77,7 @@
* Add variables to manage plugin interval. * Add variables to manage plugin interval.
* Add netstats plugin managment. * Add netstats plugin managment.
* Add smart plugin from https://github.com/skazi0/xymon-plugins * Add smart plugin from https://github.com/skazi0/xymon-plugins
* Add smartoverall plugin from https://git.ipr.univ-rennes1.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/smartoverall * Add smartoverall plugin from https://git.ipr.univ-rennes.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/smartoverall
* Add description for plugins. * Add description for plugins.
### Fix ### Fix

View File

@ -60,13 +60,24 @@ sensors and event log.
* **xymon_cli__plug_ipmi_tpl**: Template used to generate the previous config file [default: `etc/xymon/clientlaunch.d/ipmi.cfg.j2`]. * **xymon_cli__plug_ipmi_tpl**: Template used to generate the previous config file [default: `etc/xymon/clientlaunch.d/ipmi.cfg.j2`].
* **xymon_cli__plug_ipmi_interval**: Time between each run of the `ipmi` plugin [default: `5m`]. * **xymon_cli__plug_ipmi_interval**: Time between each run of the `ipmi` plugin [default: `5m`].
#### Kern
Variables for the kern plugin from hobbit-plugins. The plugin check for running
outdated running kernel and need for reboot.
* **xymon_cli__plug_kern_state**: The state of plugin `kern` [default: `true`].
* **xymon_cli__plug_kern_package**: The packages to install to provide `kern` plugin [default: `[ 'binutils', 'libfile-slurp-perl', 'libsort-naturally-perl' ]`].
* **xymon_cli__plug_kern_path**: Configuration file for the `kern` plugin [default: `/etc/xymon/clientlaunch.d/kern.cfg`].
* **xymon_cli__plug_kern_tpl**: Template used to generate the previous config file [default: `etc/xymon/clientlaunch.d/kern.cfg.j2`].
* **xymon_cli__plug_kern_interval**: Time between each run of the `kern` plugin [default: `5m`].
#### Libs #### Libs
Variables for the Libs plugin from hobbit-plugins. The plugin check for running Variables for the Libs plugin from hobbit-plugins. The plugin check for running
processes with upgraded libraries. processes with upgraded libraries.
* **xymon_cli__plug_libs_state**: The state of plugin `libs` [default: `true`]. * **xymon_cli__plug_libs_state**: The state of plugin `libs` [default: `true`].
* **xymon_cli__plug_libs_package**: The packages to install to provide `libs` plugin [default: `[ 'binutils', 'lsof', 'libyaml-tiny-perl', 'libfile-slurp-perl', 'libsort-naturally-perl' ]`]. * **xymon_cli__plug_libs_package**: The packages to install to provide `libs` plugin [default: `[ 'lsof', 'sudo', 'libyaml-tiny-perl' ]`].
* **xymon_cli__plug_libs_path**: Configuration file for the `libs` plugin [default: `/etc/xymon/clientlaunch.d/libs.cfg`]. * **xymon_cli__plug_libs_path**: Configuration file for the `libs` plugin [default: `/etc/xymon/clientlaunch.d/libs.cfg`].
* **xymon_cli__plug_libs_tpl**: Template used to generate the previous config file [default: `etc/xymon/clientlaunch.d/libs.cfg.j2`]. * **xymon_cli__plug_libs_tpl**: Template used to generate the previous config file [default: `etc/xymon/clientlaunch.d/libs.cfg.j2`].
* **xymon_cli__plug_libs_interval**: Time between each run of the `libs` plugin [default: `5m`]. * **xymon_cli__plug_libs_interval**: Time between each run of the `libs` plugin [default: `5m`].
@ -193,7 +204,7 @@ one's recommended by the vendor and check a recent (<24h) test was done.
Variables for the temp plugin from hobbit-plugins. Simple temperature monitor. Variables for the temp plugin from hobbit-plugins. Simple temperature monitor.
* **xymon_cli__plug_temp_state**: The state of plugin `temp` [default: `False`]. * **xymon_cli__plug_temp_state**: The state of plugin `temp` [default: `False`].
* **xymon_cli__plug_temp_package**: The packages to install to provide `temp` plugin [default: `[ 'libfile-which-perl', 'libyaml-tiny-perl', 'hddtemp', 'smartmontools', 'libxml-twig-perl' ]`]. * **xymon_cli__plug_temp_package**: The packages to install to provide `temp` plugin [default: `[ 'libfile-which-perl', 'libyaml-tiny-perl', 'smartmontools', 'libxml-twig-perl' ]`].
* **xymon_cli__plug_temp_path**: Configuration file for the `temp` plugin [default: `'/etc/xymon/clientlaunch.d/temp.cfg'`]. * **xymon_cli__plug_temp_path**: Configuration file for the `temp` plugin [default: `'/etc/xymon/clientlaunch.d/temp.cfg'`].
* **xymon_cli__plug_temp_tpl**: Template used to generate the previous config file [default: `'etc/xymon/clientlaunch.d/temp.cfg.j2'`]. * **xymon_cli__plug_temp_tpl**: Template used to generate the previous config file [default: `'etc/xymon/clientlaunch.d/temp.cfg.j2'`].
* **xymon_cli__plug_temp_interval**: Time between each run of the `temp` plugin [default: `'5m'`] * **xymon_cli__plug_temp_interval**: Time between each run of the `temp` plugin [default: `'5m'`]
@ -260,6 +271,7 @@ This role will:
Some plugins and options can be managed with this role: Some plugins and options can be managed with this role:
* apt: Check state of packages and repositories. * apt: Check state of packages and repositories.
* kern: Check for outdated running kernel and need for reboot.
* libs: Check for running processes with upgraded libraries. * libs: Check for running processes with upgraded libraries.
* mq: Check mail queue. * mq: Check mail queue.
* zfs: Check ZFS pools status. * zfs: Check ZFS pools status.
@ -284,7 +296,7 @@ Jérémy Gardais
[vars directory]: ./vars [vars directory]: ./vars
[gogs to github hook]: https://stackoverflow.com/a/21998477 [gogs to github hook]: https://stackoverflow.com/a/21998477
[xymon source]: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.xymon [xymon source]: https://git.ipr.univ-rennes.fr/cellinfo/ansible.xymon
[xymon github]: https://github.com/ipr-cnrs/xymon [xymon github]: https://github.com/ipr-cnrs/xymon
[wtfpl website]: http://www.wtfpl.net/about/ [wtfpl website]: http://www.wtfpl.net/about/
[ipr website]: https://ipr.univ-rennes1.fr/ [ipr website]: https://ipr.univ-rennes1.fr/
@ -292,7 +304,7 @@ Jérémy Gardais
[url hwraid]: https://hwraid.le-vert.net/wiki/DebianPackages [url hwraid]: https://hwraid.le-vert.net/wiki/DebianPackages
[megaraid plugin doc]: https://salsa.debian.org/debian/hobbit-plugins#megaraid-check-state-of-lsi-megaraid-sas-controllers [megaraid plugin doc]: https://salsa.debian.org/debian/hobbit-plugins#megaraid-check-state-of-lsi-megaraid-sas-controllers
[net plugin doc]: https://salsa.debian.org/debian/hobbit-plugins#net-check-network-interface-states [net plugin doc]: https://salsa.debian.org/debian/hobbit-plugins#net-check-network-interface-states
[sge plugin source]: https://git.ipr.univ-rennes1.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/sge.sh [sge plugin source]: https://git.ipr.univ-rennes.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/sge.sh
[smartoverall plugin source]: https://git.ipr.univ-rennes1.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/smartoverall [smartoverall plugin source]: https://git.ipr.univ-rennes.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/smartoverall
[smart plugin source]: https://github.com/skazi0/xymon-plugins [smart plugin source]: https://github.com/skazi0/xymon-plugins
[zfs plugin source]: https://wiki.xymonton.org/doku.php/monitors:bb-zfs [zfs plugin source]: https://wiki.xymonton.org/doku.php/monitors:bb-zfs

View File

@ -72,9 +72,24 @@ xymon_cli__plug_ipmi_tpl: 'etc/xymon/clientlaunch.d/ipmi.cfg.j2'
xymon_cli__plug_ipmi_interval: '5m' xymon_cli__plug_ipmi_interval: '5m'
## ]]] ## ]]]
## Plugin kern [[[
xymon_cli__plug_kern_state: true
xymon_cli__plug_kern_package: [ 'binutils', 'libfile-slurp-perl', 'libsort-naturally-perl' ]
xymon_cli__plug_kern_path: '/etc/xymon/clientlaunch.d/kern.cfg'
xymon_cli__plug_kern_tpl: 'etc/xymon/clientlaunch.d/kern.cfg.j2'
xymon_cli__plug_kern_interval: '5m'
### Related to "Ubuntu - Can't check kernel version" warning message
### See : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725/comments/35
xymon_cli__plug_kern_fix: '{{ True if (ansible_distribution == "Ubuntu")
else False }}'
xymon_cli__plug_kern_fix_path: '/etc/kernel/postinst.d/statoverride'
xymon_cli__plug_kern_fix_tpl: 'etc/kernel/postinst.d/statoverride.j2'
# ]]]
## Plugin libs [[[ ## Plugin libs [[[
xymon_cli__plug_libs_state: true 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_package: [ 'lsof', 'sudo', 'libyaml-tiny-perl' ]
xymon_cli__plug_libs_path: '/etc/xymon/clientlaunch.d/libs.cfg' 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_tpl: 'etc/xymon/clientlaunch.d/libs.cfg.j2'
xymon_cli__plug_libs_interval: '5m' xymon_cli__plug_libs_interval: '5m'
@ -82,13 +97,19 @@ xymon_cli__plug_libs_interval: '5m'
xymon_cli__plug_libs_default_whitelist: xymon_cli__plug_libs_default_whitelist:
/lib/systemd/systemd: /lib/systemd/systemd:
- '.*' - '.*'
/usr/lib/x86_64-linux-gnu/sssd/sssd_be: /usr/libexec/sssd/sssd_autofs:
- '.*' - '.*'
/usr/lib/x86_64-linux-gnu/sssd/sssd_autofs: /usr/libexec/sssd/sssd_be:
- '.*' - '.*'
/usr/lib/x86_64-linux-gnu/sssd/sssd_nss: /usr/libexec/sssd/sssd_nss:
- '.*' - '.*'
/usr/lib/x86_64-linux-gnu/sssd/sssd_pam: /usr/libexec/sssd/sssd_pac:
- '.*'
/usr/libexec/sssd/sssd_pam:
- '.*'
/usr/libexec/sssd/sssd_ssh:
- '.*'
/usr/libexec/sssd/sssd_sudo:
- '.*' - '.*'
/usr/sbin/sssd: /usr/sbin/sssd:
- '.*' - '.*'
@ -140,7 +161,7 @@ xymon_cli__plug_ntpq_interval: '5m'
## ]]] ## ]]]
## Plugin SGE [[[ ## Plugin SGE [[[
### From https://git.ipr.univ-rennes1.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/sge.sh ### From https://git.ipr.univ-rennes.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/sge.sh
xymon_cli__plug_sge_state: False xymon_cli__plug_sge_state: False
xymon_cli__plug_sge_script_path: '/usr/lib/xymon/client/ext/sge.sh' 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_tpl: 'usr/lib/xymon/client/ext/sge.sh.j2'
@ -151,7 +172,7 @@ xymon_cli__plug_sge_interval: '5m'
# ]]] # ]]]
## Plugin smartoverall [[[ ## Plugin smartoverall [[[
### From https://git.ipr.univ-rennes1.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/smartoverall ### From https://git.ipr.univ-rennes.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/smartoverall
### And based on https://www.xymon.com/xymon-cgi/viewconf.sh?smart ### And based on https://www.xymon.com/xymon-cgi/viewconf.sh?smart
### Mostly for disks unknown from smartmontools's database ### Mostly for disks unknown from smartmontools's database
xymon_cli__plug_smartoverall_state: False xymon_cli__plug_smartoverall_state: False
@ -179,7 +200,7 @@ xymon_cli__plug_smart_interval: '10m'
## Plugin temp [[[ ## Plugin temp [[[
### Enable by default on hardware host ### Enable by default on hardware host
xymon_cli__plug_temp_state: False xymon_cli__plug_temp_state: False
xymon_cli__plug_temp_package: [ 'libfile-which-perl', 'libyaml-tiny-perl', 'hddtemp', 'smartmontools', 'libxml-twig-perl' ] xymon_cli__plug_temp_package: [ 'libfile-which-perl', 'libyaml-tiny-perl', 'smartmontools', 'libxml-twig-perl' ]
# Define xymon_cli__plug_temp_extra_package in your own inventory. # Define xymon_cli__plug_temp_extra_package in your own inventory.
# See Nvidia support in README for more informations # See Nvidia support in README for more informations
#xymon_cli__plug_temp_extra_package: [ 'nvidia-smi' ] #xymon_cli__plug_temp_extra_package: [ 'nvidia-smi' ]
@ -205,6 +226,7 @@ xymon_cli__plug_zfs_interval: '5m'
xymon_cli__plug_combined_packages: '{{ ((xymon_cli__plug_pkg_list|d([]) if xymon_cli__plug_manage|bool else []) 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_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_ipmi_package if xymon_cli__plug_ipmi_state|bool else [])
+ (xymon_cli__plug_kern_package if xymon_cli__plug_kern_state|bool else [])
+ (xymon_cli__plug_libs_package if xymon_cli__plug_libs_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_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_mq_package if xymon_cli__plug_mq_state|bool else [])
@ -226,6 +248,9 @@ xymon_cli__plug_combined_clientlaunch:
- name: ipmi - name: ipmi
path: '{{ xymon_cli__plug_ipmi_path }}' path: '{{ xymon_cli__plug_ipmi_path }}'
template: '{{ xymon_cli__plug_ipmi_tpl }}' template: '{{ xymon_cli__plug_ipmi_tpl }}'
- name: kern
path: '{{ xymon_cli__plug_kern_path }}'
template: '{{ xymon_cli__plug_kern_tpl }}'
- name: libs - name: libs
path: '{{ xymon_cli__plug_libs_path }}' path: '{{ xymon_cli__plug_libs_path }}'
template: '{{ xymon_cli__plug_libs_tpl }}' template: '{{ xymon_cli__plug_libs_tpl }}'

View File

@ -7,12 +7,13 @@ galaxy_info:
description: "Manage Xymon configuration" description: "Manage Xymon configuration"
license: WTFPL license: WTFPL
company: IPR company: IPR
issue_tracker_url: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.xymon/issues issue_tracker_url: https://git.ipr.univ-rennes.fr/cellinfo/ansible.xymon/issues
min_ansible_version: 2.7 min_ansible_version: 2.7
platforms: platforms:
- name: Debian - name: Debian
versions: versions:
- buster - buster
- bullseye
- stretch - stretch
galaxy_tags: galaxy_tags:
- system - system

View File

@ -4,7 +4,7 @@
# tasks file for ipr.ansible.xymon # tasks file for ipr.ansible.xymon
- name: Load specific OS vars for xymon - name: Load specific OS vars for xymon
include_vars: "{{ item }}" ansible.builtin.include_vars: "{{ item }}"
with_first_found: with_first_found:
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_version }}.yml" - "{{ ansible_distribution|lower }}-{{ ansible_distribution_version }}.yml"
- "{{ ansible_distribution|lower }}.yml" - "{{ ansible_distribution|lower }}.yml"
@ -12,18 +12,16 @@
# Manage required client packages [[[1 # Manage required client packages [[[1
- name: client package - name: client package
package: ansible.builtin.package:
name: '{{ item }}' name: '{{ xymon_cli__pkg_list | flatten }}'
state: '{{ xymon_cli__pkg_state }}' state: '{{ xymon_cli__pkg_state }}'
with_items:
- '{{ xymon_cli__pkg_list | to_nice_json }}'
register: cli_result register: cli_result
until: cli_result is success until: cli_result is success
when: xymon_cli__manage|bool when: xymon_cli__manage|bool
# Manage client configuration [[[1 # Manage client configuration [[[1
- name: CONFIG xymon-client service - name: CONFIG xymon-client service
template: ansible.builtin.template:
src: '{{ xymon_cli__default_conf_tpl }}' src: '{{ xymon_cli__default_conf_tpl }}'
dest: '{{ xymon_cli__default_conf_path }}' dest: '{{ xymon_cli__default_conf_path }}'
owner: root owner: root
@ -34,7 +32,7 @@
notify: restart xymon-client service notify: restart xymon-client service
- name: CONFIG xymon user's groups - name: CONFIG xymon user's groups
user: ansible.builtin.user:
name: xymon name: xymon
groups: '{{ xymon_cli__user_groups }}' groups: '{{ xymon_cli__user_groups }}'
append: true append: true
@ -43,7 +41,7 @@
# Manage service [[[1 # Manage service [[[1
- name: SERVICE manage '{{ xymon_cli__service_name }}' - name: SERVICE manage '{{ xymon_cli__service_name }}'
service: ansible.builtin.service:
name: '{{ xymon_cli__service_name }}' name: '{{ xymon_cli__service_name }}'
state: started state: started
enabled: '{{ xymon_cli__service_enabled }}' enabled: '{{ xymon_cli__service_enabled }}'
@ -52,11 +50,9 @@
# Manage all plugins's packages [[[1 # Manage all plugins's packages [[[1
- name: PLUGINS package and dependencies - name: PLUGINS package and dependencies
package: ansible.builtin.package:
name: '{{ item }}' name: '{{ xymon_cli__plug_combined_packages | flatten }}'
state: 'present' state: 'present'
with_items:
- '{{ xymon_cli__plug_combined_packages | to_nice_json }}'
when: (xymon_cli__manage|bool and when: (xymon_cli__manage|bool and
xymon_cli__plug_manage|bool) xymon_cli__plug_manage|bool)
register: combined_packages_plug_result register: combined_packages_plug_result
@ -65,7 +61,7 @@
# Manage plugins clientlaunch files [[[1 # Manage plugins clientlaunch files [[[1
- name: PLUGINS clientlaunch files - name: PLUGINS clientlaunch files
template: ansible.builtin.template:
src: '{{ item.template }}' src: '{{ item.template }}'
dest: '{{ item.path }}' dest: '{{ item.path }}'
owner: root owner: root
@ -79,7 +75,7 @@
# Manage apt plugin [[[1 # Manage apt plugin [[[1
- name: PLUGIN apt no_repo_accept whitelist - name: PLUGIN apt no_repo_accept whitelist
template: ansible.builtin.template:
src: 'etc/xymon/apt_no_repo_accept.j2' src: 'etc/xymon/apt_no_repo_accept.j2'
dest: '/etc/xymon/apt_no_repo_accept' dest: '/etc/xymon/apt_no_repo_accept'
owner: root owner: root
@ -91,7 +87,7 @@
# Manage libs plugin [[[1 # Manage libs plugin [[[1
- name: PLUGIN libs whitelist - name: PLUGIN libs whitelist
template: ansible.builtin.template:
src: 'etc/xymon/libs.local.yaml.j2' src: 'etc/xymon/libs.local.yaml.j2'
dest: '/etc/xymon/libs.local.yaml' dest: '/etc/xymon/libs.local.yaml'
owner: root owner: root
@ -101,9 +97,22 @@
xymon_cli__plug_manage|bool) xymon_cli__plug_manage|bool)
notify: restart xymon-client service notify: restart xymon-client service
# Manage kern plugin [[[1
- name: PLUGIN kern workaround
ansible.builtin.template:
src: '{{ xymon_cli__plug_kern_fix_tpl }}'
dest: '{{ xymon_cli__plug_kern_fix_path }}'
owner: root
group: root
mode: 0754
when: (xymon_cli__manage|bool and
xymon_cli__plug_manage|bool and
xymon_cli__plug_kern_fix|bool)
notify: restart xymon-client service
# Manage net plugin [[[1 # Manage net plugin [[[1
- name: PLUGIN net config template - name: PLUGIN net config template
template: ansible.builtin.template:
src: '{{ xymon_cli__plug_net_conf_tpl }}' src: '{{ xymon_cli__plug_net_conf_tpl }}'
dest: '{{ xymon_cli__plug_net_conf_path }}' dest: '{{ xymon_cli__plug_net_conf_path }}'
owner: root owner: root
@ -115,7 +124,7 @@
# Manage sge plugin [[[1 # Manage sge plugin [[[1
- name: PLUGIN sge script file from template - name: PLUGIN sge script file from template
template: ansible.builtin.template:
src: '{{ xymon_cli__plug_sge_script_tpl }}' src: '{{ xymon_cli__plug_sge_script_tpl }}'
dest: '{{ xymon_cli__plug_sge_script_path }}' dest: '{{ xymon_cli__plug_sge_script_path }}'
owner: root owner: root
@ -127,7 +136,7 @@
notify: restart xymon-client service notify: restart xymon-client service
- name: PLUGIN sge script file from URL - name: PLUGIN sge script file from URL
get_url: ansible.builtin.get_url:
url: '{{ xymon_cli__plug_sge_script_url }}' url: '{{ xymon_cli__plug_sge_script_url }}'
dest: '{{ xymon_cli__plug_sge_script_path }}' dest: '{{ xymon_cli__plug_sge_script_path }}'
owner: root owner: root
@ -140,7 +149,7 @@
# Manage smartoverall plugin [[[1 # Manage smartoverall plugin [[[1
- name: PLUGIN smartoverall script file from template - name: PLUGIN smartoverall script file from template
template: ansible.builtin.template:
src: '{{ xymon_cli__plug_smartoverall_script_tpl }}' src: '{{ xymon_cli__plug_smartoverall_script_tpl }}'
dest: '{{ xymon_cli__plug_smartoverall_script_path }}' dest: '{{ xymon_cli__plug_smartoverall_script_path }}'
owner: root owner: root
@ -152,7 +161,7 @@
notify: restart xymon-client service notify: restart xymon-client service
- name: PLUGIN smartoverall script file from URL - name: PLUGIN smartoverall script file from URL
get_url: ansible.builtin.get_url:
url: '{{ xymon_cli__plug_smartoverall_script_url }}' url: '{{ xymon_cli__plug_smartoverall_script_url }}'
dest: '{{ xymon_cli__plug_smartoverall_script_path }}' dest: '{{ xymon_cli__plug_smartoverall_script_path }}'
owner: root owner: root
@ -165,7 +174,7 @@
# Manage smart plugin [[[1 # Manage smart plugin [[[1
- name: PLUGIN smart script file from template - name: PLUGIN smart script file from template
template: ansible.builtin.template:
src: '{{ xymon_cli__plug_smart_script_tpl }}' src: '{{ xymon_cli__plug_smart_script_tpl }}'
dest: '{{ xymon_cli__plug_smart_script_path }}' dest: '{{ xymon_cli__plug_smart_script_path }}'
owner: root owner: root
@ -177,7 +186,7 @@
notify: restart xymon-client service notify: restart xymon-client service
- name: PLUGIN smart script file from URL - name: PLUGIN smart script file from URL
get_url: ansible.builtin.get_url:
url: '{{ xymon_cli__plug_smart_script_url }}' url: '{{ xymon_cli__plug_smart_script_url }}'
dest: '{{ xymon_cli__plug_smart_script_path }}' dest: '{{ xymon_cli__plug_smart_script_path }}'
owner: root owner: root
@ -190,7 +199,7 @@
# Manage zfs plugin [[[1 # Manage zfs plugin [[[1
- name: PLUGIN zfs script file - name: PLUGIN zfs script file
template: ansible.builtin.template:
src: '{{ xymon_cli__plug_zfs_script_tpl }}' src: '{{ xymon_cli__plug_zfs_script_tpl }}'
dest: '{{ xymon_cli__plug_zfs_script_path }}' dest: '{{ xymon_cli__plug_zfs_script_path }}'
owner: root owner: root

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
# Configure the Xymon client settings. # Configure the Xymon client settings.

View File

@ -0,0 +1,18 @@
#!/bin/sh
{# Use | comment to manage multilines #}
# {{ ansible_managed | comment }}
# Ansible template : {{ template_path }}
#
# Allow to fix the warning :
# "Kernel image /boot/vmlinuz… unreadable. Can't check kernel version!"
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725
# See comment #34 - https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725/comments/34
set -e
version="$1"
if [ -z "$version" ]; then
exit 0
fi
exec dpkg-statoverride --force-statoverride-add --update --add root root 0644 "/boot/vmlinuz-${version}"

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{% for package in xymon_cli__plug_apt_combined_whitelist %} {% for package in xymon_cli__plug_apt_combined_whitelist %}
{{ package }} {{ package }}

View File

@ -1,5 +1,5 @@
[apt] [apt]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_apt_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_apt_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,5 +1,5 @@
[ipmi] [ipmi]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_ipmi_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_ipmi_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -0,0 +1,8 @@
[kern]
# {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_kern_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg
CMD $XYMONCLIENTHOME/ext/kern
LOGFILE /var/log/xymon/xymonclient.log
INTERVAL {{ xymon_cli__plug_kern_interval }}

View File

@ -1,5 +1,5 @@
[libs] [libs]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_libs_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_libs_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,6 +1,6 @@
# Requires megaclisas-status package from https://hwraid.le-vert.net/wiki/DebianPackages # Requires megaclisas-status package from https://hwraid.le-vert.net/wiki/DebianPackages
[megaraid] [megaraid]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_megaraid_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_megaraid_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,5 +1,5 @@
[mq] [mq]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_mq_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_mq_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,5 +1,5 @@
[net] [net]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_net_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_net_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,5 +1,5 @@
[netstats] [netstats]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_netstats_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_netstats_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,5 +1,5 @@
[ntpq] [ntpq]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_ntpq_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_ntpq_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,5 +1,5 @@
[sge] [sge]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_sge_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_sge_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,5 +1,5 @@
[smart] [smart]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_smart_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_smart_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,5 +1,5 @@
[smartoverall] [smartoverall]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_smartoverall_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_smartoverall_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,5 +1,5 @@
[temp] [temp]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_temp_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_temp_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,5 +1,5 @@
[zfs] [zfs]
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_zfs_state else 'DISABLED' }} {{ '#DISABLED' if xymon_cli__plug_zfs_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg ENVFILE /etc/xymon/xymonclient.cfg

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{% set inputmerged = xymon_cli__plug_libs_default_whitelist.copy() %} {% set inputmerged = xymon_cli__plug_libs_default_whitelist.copy() %}
{% set _ = inputmerged.update(xymon_cli__plug_libs_whitelist) %} {% set _ = inputmerged.update(xymon_cli__plug_libs_whitelist) %}

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} # {{ ansible_managed | comment }}
## From ipr-cnrs.xymon role ## From ipr-cnrs.xymon role
{{ ansible_hostname }}: {{ ansible_hostname }}:
- {{ ansible_default_ipv4.interface }} - {{ ansible_default_ipv4.interface }}

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
# {{ ansible_managed }} # {{ ansible_managed | comment }}
# From ipr-cnrs.xymon role # From ipr-cnrs.xymon role
# https://git.ipr.univ-rennes1.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/sge.sh # https://git.ipr.univ-rennes.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/sge.sh
# #
# SGE: Sun Grid Engine check - Xymon external script test # SGE: Sun Grid Engine check - Xymon external script test
# #

View File

@ -2,7 +2,7 @@
# $Id: sensors 70 2011-11-25 09:21:18Z skazi $ # $Id: sensors 70 2011-11-25 09:21:18Z skazi $
# Author: Jacek Tomasiak <jacek.tomasiak@gmail.com> # Author: Jacek Tomasiak <jacek.tomasiak@gmail.com>
# {{ ansible_managed }} # {{ ansible_managed | comment }}
# From ipr-cnrs.xymon role # From ipr-cnrs.xymon role
# Thanks to Jacek Tomasiak skazi0 # Thanks to Jacek Tomasiak skazi0
# https://github.com/skazi0/xymon-plugins/blob/master/client/ext/smart # https://github.com/skazi0/xymon-plugins/blob/master/client/ext/smart

View File

@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
# .. vim: foldmarker=[[[,]]]:foldmethod=marker # .. vim: foldmarker=[[[,]]]:foldmethod=marker
# {{ ansible_managed }} # {{ ansible_managed | comment }}
# From ipr-cnrs.xymon role # From ipr-cnrs.xymon role
# Source: # Source:
# https://git.ipr.univ-rennes1.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/smartoverall # https://git.ipr.univ-rennes.fr/cellinfo/scripts/src/master/xymon/plugins/client/ext/smartoverall
# NOTE: Must be run as root, so you probably need to setup sudo for this. # NOTE: Must be run as root, so you probably need to setup sudo for this.

View File

@ -1,6 +1,6 @@
#!/bin/ksh #!/bin/ksh
# {{ ansible_managed }} # {{ ansible_managed | comment }}
# From ipr-cnrs.xymon role # From ipr-cnrs.xymon role
# Revision History: # Revision History: