add zabbix key for cron-send-project-operation.py
MODIFY
ansible/roles/os_zabbix/vars/template_openshift_master.yml
ansible/roles/os_zabbix/vars/template_openshift_master.yml
@@ -252,6 +252,18 @@ g_template_openshift_master:
applications:
- Openshift Cluster
+ - key: openshift.master.project.create
+ description: "check the openshift project create status"
+ value_type: int
+ applications:
+ - Openshift Master
+
+ - key: openshift.master.project.delete
+ description: "check the openshift project delete status"
+ value_type: int
+ applications:
+ - Openshift Master
+
- key: openshift.master.pv.space.total
description: Shows the total space of pv
value_type: int
@@ -917,6 +929,16 @@ g_template_openshift_master:
url: "https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_internal_pod.asciidoc"
priority: avg
+ - name: "openshift project creation failed on {HOST.NAME}"
+ expression: "{Template Openshift Master:openshift.master.project.create.last(#1)}=0"
+ url: "https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc"
+ priority: high
+
+ - name: "openshift project deletion failed on {HOST.NAME}"
+ expression: "{Template Openshift Master:openshift.master.project.delete.last(#1)}=1"
+ url: "https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc"
+ priority: high
+
- 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"

MODIFY
scripts/openshift-tools-scripts.spec
scripts/openshift-tools-scripts.spec
@@ -57,6 +57,7 @@ cp -p monitoring/cron-send-ec2-ebs-volumes-in-stuck-state.py %{buildroot}/usr/bi
cp -p monitoring/cron-send-create-app.py %{buildroot}/usr/bin/cron-send-create-app
cp -p monitoring/cron-send-internal-pods-check.py %{buildroot}/usr/bin/cron-send-internal-pods-check
cp -p monitoring/cron-send-usage-pv.py %{buildroot}/usr/bin/cron-send-usage-pv
+cp -p monitoring/cron-send-project-operation.py %{buildroot}/usr/bin/cron-send-project-operation
cp -p monitoring/cron-send-project-stats.py %{buildroot}/usr/bin/cron-send-project-stats
cp -p monitoring/cron-openshift-pruner.py %{buildroot}/usr/bin/cron-openshift-pruner
cp -p remote-heal/remote-healer.py %{buildroot}/usr/bin/remote-healer
@@ -301,6 +302,7 @@ OpenShift Tools Openshift Product Scripts
/usr/bin/cron-send-create-app
/usr/bin/cron-send-internal-pods-check
/usr/bin/cron-send-usage-pv
+/usr/bin/cron-send-project-operation
/usr/bin/cron-send-project-stats
/usr/bin/cron-send-os-dnsmasq-checks
/usr/bin/cron-send-os-skydns-checks

add zabbix key for cron-send-project-operation.py