changed HEAL to Heal
MODIFY
ansible/roles/os_zabbix/vars/template_os_linux.yml
ansible/roles/os_zabbix/vars/template_os_linux.yml
@@ -289,19 +289,19 @@ g_template_os_linux:
priority: average
# This has a dependency on the previous trigger
- - name: "{% raw %}[HEAL] Filesystem: {{ '{#' }}OSO_FILESYS} has less than 10% free disk space on {HOST.NAME}{% endraw %}"
+ - name: "{% raw %}[Heal] Filesystem: {{ '{#' }}OSO_FILESYS} has less than 10% free disk space on {HOST.NAME}{% endraw %}"
expression: "{% raw %}{Template OS Linux:disc.filesys.full[{{ '{#' }}OSO_FILESYS}].last()}>90{% endraw %}"
url: "https://github.com/openshift/ops-sop/blob/master/v3/alerts/check_filesys_full.asciidoc"
priority: high
# This has a dependency on the previous trigger
# Trigger Prototypes do not work in 2.4. They will work in Zabbix 3.0
- - name: "{% raw %}[HEAL] Filesystem: {{ '{#' }}OSO_FILESYS} has less than 15% free disk space on {HOST.NAME}{% endraw %}"
+ - name: "{% raw %}[Heal] Filesystem: {{ '{#' }}OSO_FILESYS} has less than 15% free disk space on {HOST.NAME}{% endraw %}"
expression: "{% raw %}{Template OS Linux:disc.filesys.full[{{ '{#' }}OSO_FILESYS}].last()}>85{% endraw %}"
url: "https://github.com/openshift/ops-sop/blob/master/v3/alerts/check_filesys_full.asciidoc"
priority: warn
dependencies:
- - "{% raw %}[HEAL] Filesystem: {{ '{#' }}OSO_FILESYS} has less than 10% free disk space on {HOST.NAME}{% endraw %}"
+ - "{% raw %}[Heal] Filesystem: {{ '{#' }}OSO_FILESYS} has less than 10% free disk space on {HOST.NAME}{% endraw %}"
- name: "{% raw %}Filesystem: {{ '{#' }}OSO_FILESYS} has less than 5% free inodes on {HOST.NAME}{% endraw %}"
expression: "{% raw %}{Template OS Linux:disc.filesys.inodes.pused[{{ '{#' }}OSO_FILESYS}].last()}>95{% endraw %}"

MODIFY
scripts/remote-heal/remote-healer.py
scripts/remote-heal/remote-healer.py
@@ -174,7 +174,7 @@ class RemoteHealer(object):
#run
self.run_cmd(cmd.split())
- elif re.search(r'^\[HEAL\] Filesystem: /dev/mapper/rootvg-var has less than 1[05]% free disk space on', self._args.trigger):
+ elif re.search(r'^\[Heal\] Filesystem: /dev/mapper/rootvg-var has less than 1[05]% free disk space on', self._args.trigger):
logging.info("Cleaningup /var on " + self._args.host)
# run the playbook to cleanup the log files
cmd = 'ansible-playbook /usr/bin/heal_cleanup_rootvg-var.yml -e "cli_tag_name=' + self._args.host + '"'

changed HEAL to Heal