ofri masad has uploaded a new change for review. Change subject: core+ui: Added 5 new events to event notifier ......................................................................
core+ui: Added 5 new events to event notifier Added new host performance events to event notifier: - Host memory usage exceeded defined threshold - Host network usage exceeded defined threshold - Host cpu usage exceeded defined threshold - Host swap memory usage exceeded defined threshold - Host free swap memory is under defined threshold Change-Id: Ie6e7949cae8729c38f1cacc36e39b51b53559f13 Signed-off-by: Ofri Masad <[email protected]> --- A backend/manager/dbscripts/upgrade/03_02_0340_add_vds_performance_notifications.sql M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java M frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java M frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties 4 files changed, 26 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/69/10969/1 diff --git a/backend/manager/dbscripts/upgrade/03_02_0340_add_vds_performance_notifications.sql b/backend/manager/dbscripts/upgrade/03_02_0340_add_vds_performance_notifications.sql new file mode 100644 index 0000000..4c62ede --- /dev/null +++ b/backend/manager/dbscripts/upgrade/03_02_0340_add_vds_performance_notifications.sql @@ -0,0 +1,6 @@ +-- Add new notifications +insert into event_map(event_up_name, event_down_name) values('VDS_HIGH_MEM_USE', ''); +insert into event_map(event_up_name, event_down_name) values('VDS_HIGH_NETWORK_USE', ''); +insert into event_map(event_up_name, event_down_name) values('VDS_HIGH_CPU_USE', ''); +insert into event_map(event_up_name, event_down_name) values('VDS_HIGH_SWAP_USE', ''); +insert into event_map(event_up_name, event_down_name) values('VDS_LOW_SWAP', ''); diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java index a3d6886..f090872 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java @@ -29,6 +29,11 @@ AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_SET_NONOPERATIONAL_IFACE_DOWN); AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_SET_NONOPERATIONAL_DOMAIN); AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.SYSTEM_CHANGE_STORAGE_POOL_STATUS_NO_HOST_FOR_SPM); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_HIGH_MEM_USE); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_HIGH_NETWORK_USE); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_HIGH_CPU_USE); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_HIGH_SWAP_USE); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_LOW_SWAP); // VM AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.VM_FAILURE); diff --git a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java index 59a6a19..3266683 100644 --- a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java +++ b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java @@ -616,4 +616,14 @@ String AuditLogType___VDS_SET_NONOPERATIONAL_DOMAIN(); String AuditLogType___SYSTEM_CHANGE_STORAGE_POOL_STATUS_NO_HOST_FOR_SPM(); + + String AuditLogType___VDS_HIGH_MEM_USE(); + + String AuditLogType___VDS_HIGH_NETWORK_USE(); + + String AuditLogType___VDS_HIGH_CPU_USE(); + + String AuditLogType___VDS_HIGH_SWAP_USE(); + + String AuditLogType___VDS_LOW_SWAP(); } diff --git a/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties b/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties index 4299740..a2a34d9 100644 --- a/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties +++ b/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties @@ -305,3 +305,8 @@ AuditLogType___VDS_SET_NONOPERATIONAL_IFACE_DOWN=Host state was set to non-operational due to a missing Interface AuditLogType___VDS_SET_NONOPERATIONAL_DOMAIN=Host state was set to non-operational due to inaccessible Storage Domain AuditLogType___SYSTEM_CHANGE_STORAGE_POOL_STATUS_NO_HOST_FOR_SPM=Failed electing an SPM for the Data-Center +AuditLogType___VDS_HIGH_MEM_USE=Host memory usage exceeded defined threshold +AuditLogType___VDS_HIGH_NETWORK_USE=Host network usage exceeded defined threshold +AuditLogType___VDS_HIGH_CPU_USE=Host cpu usage exceeded defined threshold +AuditLogType___VDS_HIGH_SWAP_USE=Host swap memory usage exceeded defined threshold +AuditLogType___VDS_LOW_SWAP=Host free swap memory is under defined threshold -- To view, visit http://gerrit.ovirt.org/10969 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie6e7949cae8729c38f1cacc36e39b51b53559f13 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: ofri masad <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
