Browse Source

xymon-client: disabling checks works only on deb >=8

master
victor héry 6 years ago
parent
commit
5c6db266da
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      README.md
  2. +2
    -2
      roles/xymon-client/tasks/client_debian.yml

+ 1
- 1
README.md View File

@ -155,7 +155,7 @@ monitoring_file: dns ## Where to store the host in hosts.d xymon server director
monitoring_section: dns ## Name of the page to use in xymon server webpage tree view (optionnal)
monitoring_ip: xxx.xxx.xxx.xxx ## IP address of the client to add in server (mandatory)
xymon_checks: "#" ## Checks to use for this client. Default '#' do a simple ping check
xymon_disabled_sondes: ## Allow to disable checks on clients (DEBIAN only)
xymon_disabled_sondes: ## Allow to disable checks on clients (DEBIAN >= 8 only)
- ntpq
- libs

+ 2
- 2
roles/xymon-client/tasks/client_debian.yml View File

@ -88,7 +88,7 @@
backrefs: yes
with_items: "{{ xymon_disabled_sondes }}"
notify: restart xymon-client
when: ansible_distribution == 'Debian' and xymon_disabled_sondes is defined
when: ansible_distribution == 'Debian' and xymon_disabled_sondes is defined and ansible_distribution_major_version|int >= 8
- name: Drop disabled sonde on Xymon server
tags:
@ -97,4 +97,4 @@
command: /usr/lib/xymon/server/bin/xymon 127.0.0.1 "drop {{ ansible_nodename }} {{ item }}"
with_items: "{{ xymon_disabled_sondes }}"
delegate_to: "{{ xymon_server }}"
when: ansible_distribution == 'Debian' and xymon_disabled_sondes is defined
when: ansible_distribution == 'Debian' and xymon_disabled_sondes is defined and ansible_distribution_major_version|int >= 8

Loading…
Cancel
Save