Skip to content
Snippets Groups Projects
Commit 4b834cb2 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: run check_oracle_db_table_integrity only every 12h (previously 1h) and...

fix: run check_oracle_db_table_integrity only every 12h (previously 1h) and delete all relevant cache files
parent 43b0f20a
No related branches found
No related tags found
No related merge requests found
Pipeline #2774 passed
......@@ -4,28 +4,38 @@
path: "/usr/lib/check_mk_agent/nrpe"
state: absent
- name: delete legacy plugins
ansible.builtin.file:
path: "/usr/lib/check_mk_agent/local/3600/check_oracle_db_table_integrity.sh"
state: absent
- name: create directory for self-developed Check_MK plugins
ansible.builtin.file:
path: "/usr/lib/check_mk_agent/local/3600/"
path: "/usr/lib/check_mk_agent/local/{{ item }}/"
state: directory
mode: "0755"
loop:
- "3600"
- "43200"
- name: install self-developed Check_MK plugins for Oracle
ansible.builtin.copy:
src: "usr/lib/check_mk_agent/local/3600/{{ item }}"
dest: "/usr/lib/check_mk_agent/local/3600/{{ item }}"
src: "usr/lib/check_mk_agent/local/{{ item }}"
dest: "/usr/lib/check_mk_agent/local/{{ item }}"
owner: "root"
group: "root"
mode: "0750"
loop:
- "check_oracle_db_segment_size.sh"
- "check_oracle_db_table_integrity.sh"
- "3600/check_oracle_db_segment_size.sh"
- "43200/check_oracle_db_table_integrity.sh"
register: cmk_plugins
- name: find cache files for local Check_MK checks
ansible.builtin.find:
path: "/var/lib/check_mk_agent/cache"
pattern: "local_*.cache"
pattern:
- "local_*.cache"
- "local_*.cache.new"
register: cachefiles
- name: >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment