-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #613 from Checkmk/feature/integration-tests-versio…
…n-handling Integration tests version handling
- Loading branch information
Showing
6 changed files
with
378 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
--- | ||
checkmk_var_rules: | ||
- name: "Filesystems (used space and growth) - Magic Factor." | ||
ruleset: "checkgroup_parameters:filesystem" | ||
rule: | ||
location: | ||
folder: "/" | ||
position: "bottom" | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "{{ ansible_date_time.iso8601 }} - Ansible managed", | ||
"description": "", | ||
"disabled": false | ||
} | ||
value_raw: "{'magic': 0.8}" | ||
|
||
- name: "CPU load (not utilization!) - 15 minute load." | ||
ruleset: "checkgroup_parameters:cpu_load" | ||
rule: | ||
location: | ||
folder: "/" | ||
position: "bottom" | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "{{ ansible_date_time.iso8601 }} - Ansible managed", | ||
"description": "", | ||
"disabled": false | ||
} | ||
value_raw: "{'levels': (1.0, 2.0)}" | ||
|
||
- name: "CPU utilization on Linux/UNIX - Multiple thresholds." | ||
ruleset: "checkgroup_parameters:cpu_iowait" | ||
rule: | ||
location: | ||
folder: "/" | ||
position: "bottom" | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "{{ ansible_date_time.iso8601 }} - Ansible managed", | ||
"description": "", | ||
"disabled": false | ||
} | ||
value_raw: "{'core_util_time': (100.0, 300, 900), 'core_util_time_total': (100.0, 300, 900)}" | ||
|
||
- name: "Logwatch Event Console Forwarding - Multiple values." | ||
ruleset: "checkgroup_parameters:logwatch_ec" | ||
rule: | ||
location: | ||
folder: "/" | ||
position: "bottom" | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "", | ||
"description": "", | ||
"disabled": false | ||
} | ||
value_raw: "{'facility': 17, 'method': '', 'monitor_logfilelist': False}" | ||
|
||
- name: "Simulating SNMP by using a stored SNMP walk - Enable." | ||
ruleset: "usewalk_hosts" | ||
rule: | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [ | ||
{ | ||
"key": "snmp_ds", | ||
"operator": "is_not", | ||
"value": "no-snmp" | ||
} | ||
], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "{{ ansible_date_time.iso8601 }} - Ansible managed", | ||
"disabled": false, | ||
} | ||
value_raw: 'True' | ||
|
||
- name: "Memory percentage used - Levels." | ||
ruleset: "checkgroup_parameters:memory_percentage_used" | ||
rule: | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "Warning at 80%\nCritical at 90%\n", | ||
"description": "Allow higher memory usage", | ||
"disabled": false, | ||
"documentation_url": "https://github.com/Checkmk/ansible-collection-checkmk.general/blob/main/plugins/modules/rules.py" | ||
} | ||
value_raw: "{'levels': (80.0, 90.0)}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
--- | ||
checkmk_var_rules: | ||
- name: "Filesystems (used space and growth) - Magic Factor." | ||
ruleset: "checkgroup_parameters:filesystem" | ||
rule: | ||
location: | ||
folder: "/" | ||
position: "bottom" | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "{{ ansible_date_time.iso8601 }} - Ansible managed", | ||
"description": "", | ||
"disabled": false | ||
} | ||
value_raw: "{'magic': 0.8}" | ||
|
||
- name: "CPU load (not utilization!) - 15 minute load." | ||
ruleset: "checkgroup_parameters:cpu_load" | ||
rule: | ||
location: | ||
folder: "/" | ||
position: "bottom" | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "{{ ansible_date_time.iso8601 }} - Ansible managed", | ||
"description": "", | ||
"disabled": false | ||
} | ||
value_raw: "{'levels': (1.0, 2.0)}" | ||
|
||
- name: "CPU utilization on Linux/UNIX - Multiple thresholds." | ||
ruleset: "checkgroup_parameters:cpu_iowait" | ||
rule: | ||
location: | ||
folder: "/" | ||
position: "bottom" | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "{{ ansible_date_time.iso8601 }} - Ansible managed", | ||
"description": "", | ||
"disabled": false | ||
} | ||
value_raw: "{'core_util_time': (100.0, 300, 900), 'core_util_time_total': (100.0, 300, 900)}" | ||
|
||
- name: "Logwatch Event Console Forwarding - Multiple values." | ||
ruleset: "checkgroup_parameters:logwatch_ec" | ||
rule: | ||
location: | ||
folder: "/" | ||
position: "bottom" | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "", | ||
"description": "", | ||
"disabled": false | ||
} | ||
value_raw: "{'facility': 17, 'method': '', 'monitor_logfilelist': False}" | ||
|
||
- name: "Simulating SNMP by using a stored SNMP walk - Enable." | ||
ruleset: "usewalk_hosts" | ||
rule: | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [ | ||
{ | ||
"key": "snmp_ds", | ||
"operator": "is_not", | ||
"value": "no-snmp" | ||
} | ||
], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "{{ ansible_date_time.iso8601 }} - Ansible managed", | ||
"disabled": false, | ||
} | ||
value_raw: 'True' | ||
|
||
- name: "Memory percentage used - Levels." | ||
ruleset: "checkgroup_parameters:memory_percentage_used" | ||
rule: | ||
conditions: { | ||
"host_labels": [], | ||
"host_tags": [], | ||
"service_labels": [] | ||
} | ||
properties: { | ||
"comment": "Warning at 80%\nCritical at 90%\n", | ||
"description": "Allow higher memory usage", | ||
"disabled": false, | ||
"documentation_url": "https://github.com/Checkmk/ansible-collection-checkmk.general/blob/main/plugins/modules/rules.py" | ||
} | ||
value_raw: "{'levels': (80.0, 90.0)}" |
Oops, something went wrong.