add key for internal pods check
MODIFY
ansible/roles/os_zabbix/vars/template_openshift_master.yml
ansible/roles/os_zabbix/vars/template_openshift_master.yml
@@ -106,6 +106,30 @@ g_template_openshift_master:
applications:
- Openshift Master
+ - key: openshift.router.pod.location
+ description: "check the openshift router pod location"
+ value_type: int
+ applications:
+ - Openshift Master
+
+ - key: openshift.router.pod.status
+ description: "check the openshift router pod status"
+ value_type: int
+ applications:
+ - Openshift Master
+
+ - key: openshift.registry.pod.location
+ description: "check the openshift registry pod location"
+ value_type: int
+ applications:
+ - Openshift Master
+
+ - key: openshift.registry.pod.status
+ description: "check the openshift registry pod status"
+ value_type: int
+ applications:
+ - Openshift Master
+
- key: openshift.master.pv.percent.usage
description: "check the openshift pv usage"
value_type: int
@@ -844,6 +868,26 @@ g_template_openshift_master:
description: The application create loop has failed 4 or more times in the last hour
priority: high
+ - name: "openshift router pods are in the same infra node on {HOST.NAME}"
+ expression: "{Template Openshift Master:openshift.router.pod.location.last(#1)}=0"
+ url: "https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_internal_pod.asciidoc"
+ priority: avg
+
+ - name: "openshift registry pods are in the same infra node on {HOST.NAME}"
+ expression: "{Template Openshift Master:openshift.registry.pod.location.last(#1)}=0"
+ url: "https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_internal_pod.asciidoc"
+ priority: avg
+
+ - name: "openshift router pods are in bad status on {HOST.NAME}"
+ expression: "{Template Openshift Master:openshift.router.pod.status.last(#1)}<2"
+ url: "https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_internal_pod.asciidoc"
+ priority: avg
+
+ - name: "openshift registry pods are in bad status on {HOST.NAME}"
+ expression: "{Template Openshift Master:openshift.registry.pod.status.last(#1)}<2"
+ url: "https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_internal_pod.asciidoc"
+ priority: avg
+
- name: "Openshift Master API health check is failing on {HOST.NAME}"
expression: "{Template Openshift Master:openshift.master.api.healthz.max(#3)}<1"
url: "https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc"

add key for internal pods check