Skip to content
Snippets Groups Projects
Select Git revision
  • 06f3517a5782aebbd884e81cdf17d7548a6c61eb
  • master default protected
2 results

test_exit_strategy.sh.j2

Blame
  • install_checkmk_plugins_rosetta.yml 1.53 KiB
    ---
    - name: install self-developed Check_MK plugins for Rosetta
      ansible.builtin.copy:
        src: "{{ item.path }}"
        dest: "/{{ item.path }}"
        owner: "root"
        group: "root"
        mode: "{{ item.mode }}"
      loop:
        - path: "usr/lib/check_mk_agent/plugins/check_rosetta_heartbeat.sh"
          mode: "0750"
        - path: "usr/lib/check_mk_agent/plugins/check_rosetta_heartbeat.xml"
          mode: "0644"
    
    - name: configure logwatch for Rosetta
      ansible.builtin.blockinfile:
        path: "/etc/check_mk/logwatch.cfg"
        state: present
        marker: "# {mark} ANSIBLE MANAGED BLOCK - Rosetta"
        block: |
          # Globbing patterns are allowed for filenames/paths:
          "/operational_shared/logs/{{ ansible_hostname }}*/server.log"
           # This is clearly not an error, it just got the wrong log level. Ignore it.
           I failed to retrieve institution level logo, retrieved consortium level logo instead.
           # Our documents are all UTF-8 encoded. Ignore that.
           I Make sure your XML documents are encoded in UTF-8, other encodings are not currently supported
           # This error shows up all the time, but it never does anything. Ignore it.
           I Unable to find IE
           # Trigger WARN for Warnings.
           W WARN
           # Trigger CRIT for ERRORs and Exceptions
           C ERROR
           C Exception
          "/operational_shared/logs/{{ ansible_hostname }}*/gc.log"
           C GC (Allocation Failure)
    
    - name: uninstall legacy NFS_troubleshoot.sh logwatch & mail notification script
      ansible.builtin.file:
        path: "/root/mail_rosetta_errors.sh"
        state: absent