Skip to content

Commit db6c8f0

Browse files
committed
CLOUDSTACK-439: Fixed typos and changed direct attached to shared network IPs
1 parent 51a5377 commit db6c8f0

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎server/src/com/cloud/alert/AlertManagerImpl.java‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -560,35 +560,35 @@ private void generateEmailAlert(DataCenterVO dc, HostPodVO pod, ClusterVO cluste
560560

561561
//Cluster Level
562562
case CapacityVO.CAPACITY_TYPE_MEMORY:
563-
msgSubject = "System Alert: Low Available Memory in cluster " +cluster.getName()+ " pod " +pod.getName()+ " of availablity zone " + dc.getName();
563+
msgSubject = "System Alert: Low Available Memory in cluster " +cluster.getName()+ " pod " +pod.getName()+ " of availability zone " + dc.getName();
564564
totalStr = formatBytesToMegabytes(totalCapacity);
565565
usedStr = formatBytesToMegabytes(usedCapacity);
566566
msgContent = "System memory is low, total: " + totalStr + " MB, used: " + usedStr + " MB (" + pctStr + "%)";
567567
alertType = ALERT_TYPE_MEMORY;
568568
break;
569569
case CapacityVO.CAPACITY_TYPE_CPU:
570-
msgSubject = "System Alert: Low Unallocated CPU in cluster " +cluster.getName()+ " pod " +pod.getName()+ " of availablity zone " + dc.getName();
570+
msgSubject = "System Alert: Low Unallocated CPU in cluster " +cluster.getName()+ " pod " +pod.getName()+ " of availability zone " + dc.getName();
571571
totalStr = _dfWhole.format(totalCapacity);
572572
usedStr = _dfWhole.format(usedCapacity);
573573
msgContent = "Unallocated CPU is low, total: " + totalStr + " Mhz, used: " + usedStr + " Mhz (" + pctStr + "%)";
574574
alertType = ALERT_TYPE_CPU;
575575
break;
576576
case CapacityVO.CAPACITY_TYPE_STORAGE:
577-
msgSubject = "System Alert: Low Available Storage in cluster " +cluster.getName()+ " pod " +pod.getName()+ " of availablity zone " + dc.getName();
577+
msgSubject = "System Alert: Low Available Storage in cluster " +cluster.getName()+ " pod " +pod.getName()+ " of availability zone " + dc.getName();
578578
totalStr = formatBytesToMegabytes(totalCapacity);
579579
usedStr = formatBytesToMegabytes(usedCapacity);
580580
msgContent = "Available storage space is low, total: " + totalStr + " MB, used: " + usedStr + " MB (" + pctStr + "%)";
581581
alertType = ALERT_TYPE_STORAGE;
582582
break;
583583
case CapacityVO.CAPACITY_TYPE_STORAGE_ALLOCATED:
584-
msgSubject = "System Alert: Remaining unallocated Storage is low in cluster " +cluster.getName()+ " pod " +pod.getName()+ " of availablity zone " + dc.getName();
584+
msgSubject = "System Alert: Remaining unallocated Storage is low in cluster " +cluster.getName()+ " pod " +pod.getName()+ " of availability zone " + dc.getName();
585585
totalStr = formatBytesToMegabytes(totalCapacity);
586586
usedStr = formatBytesToMegabytes(usedCapacity);
587587
msgContent = "Unallocated storage space is low, total: " + totalStr + " MB, allocated: " + usedStr + " MB (" + pctStr + "%)";
588588
alertType = ALERT_TYPE_STORAGE_ALLOCATED;
589589
break;
590590
case CapacityVO.CAPACITY_TYPE_LOCAL_STORAGE:
591-
msgSubject = "System Alert: Remaining unallocated Local Storage is low in cluster " +cluster.getName()+ " pod " +pod.getName()+ " of availablity zone " + dc.getName();
591+
msgSubject = "System Alert: Remaining unallocated Local Storage is low in cluster " +cluster.getName()+ " pod " +pod.getName()+ " of availability zone " + dc.getName();
592592
totalStr = formatBytesToMegabytes(totalCapacity);
593593
usedStr = formatBytesToMegabytes(usedCapacity);
594594
msgContent = "Unallocated storage space is low, total: " + totalStr + " MB, allocated: " + usedStr + " MB (" + pctStr + "%)";
@@ -597,7 +597,7 @@ private void generateEmailAlert(DataCenterVO dc, HostPodVO pod, ClusterVO cluste
597597

598598
//Pod Level
599599
case CapacityVO.CAPACITY_TYPE_PRIVATE_IP:
600-
msgSubject = "System Alert: Number of unallocated private IPs is low in pod " +pod.getName()+ " of availablity zone " + dc.getName();
600+
msgSubject = "System Alert: Number of unallocated private IPs is low in pod " +pod.getName()+ " of availability zone " + dc.getName();
601601
totalStr = Double.toString(totalCapacity);
602602
usedStr = Double.toString(usedCapacity);
603603
msgContent = "Number of unallocated private IPs is low, total: " + totalStr + ", allocated: " + usedStr + " (" + pctStr + "%)";
@@ -606,28 +606,28 @@ private void generateEmailAlert(DataCenterVO dc, HostPodVO pod, ClusterVO cluste
606606

607607
//Zone Level
608608
case CapacityVO.CAPACITY_TYPE_SECONDARY_STORAGE:
609-
msgSubject = "System Alert: Low Available Secondary Storage in availablity zone " + dc.getName();
609+
msgSubject = "System Alert: Low Available Secondary Storage in availability zone " + dc.getName();
610610
totalStr = formatBytesToMegabytes(totalCapacity);
611611
usedStr = formatBytesToMegabytes(usedCapacity);
612612
msgContent = "Available secondary storage space is low, total: " + totalStr + " MB, used: " + usedStr + " MB (" + pctStr + "%)";
613613
alertType = ALERT_TYPE_SECONDARY_STORAGE;
614614
break;
615615
case CapacityVO.CAPACITY_TYPE_VIRTUAL_NETWORK_PUBLIC_IP:
616-
msgSubject = "System Alert: Number of unallocated virtual network public IPs is low in availablity zone " + dc.getName();
616+
msgSubject = "System Alert: Number of unallocated virtual network public IPs is low in availability zone " + dc.getName();
617617
totalStr = Double.toString(totalCapacity);
618618
usedStr = Double.toString(usedCapacity);
619619
msgContent = "Number of unallocated public IPs is low, total: " + totalStr + ", allocated: " + usedStr + " (" + pctStr + "%)";
620620
alertType = ALERT_TYPE_VIRTUAL_NETWORK_PUBLIC_IP;
621621
break;
622622
case CapacityVO.CAPACITY_TYPE_DIRECT_ATTACHED_PUBLIC_IP:
623-
msgSubject = "System Alert: Number of unallocated direct attached public IPs is low in availablity zone " + dc.getName();
623+
msgSubject = "System Alert: Number of unallocated shared network IPs is low in availability zone " + dc.getName();
624624
totalStr = Double.toString(totalCapacity);
625625
usedStr = Double.toString(usedCapacity);
626-
msgContent = "Number of unallocated direct attached public IPs is low, total: " + totalStr + ", allocated: " + usedStr + " (" + pctStr + "%)";
626+
msgContent = "Number of unallocated shared network IPs is low, total: " + totalStr + ", allocated: " + usedStr + " (" + pctStr + "%)";
627627
alertType = ALERT_TYPE_DIRECT_ATTACHED_PUBLIC_IP;
628628
break;
629629
case CapacityVO.CAPACITY_TYPE_VLAN:
630-
msgSubject = "System Alert: Number of unallocated VLANs is low in availablity zone " + dc.getName();
630+
msgSubject = "System Alert: Number of unallocated VLANs is low in availability zone " + dc.getName();
631631
totalStr = Double.toString(totalCapacity);
632632
usedStr = Double.toString(usedCapacity);
633633
msgContent = "Number of unallocated VLANs is low, total: " + totalStr + ", allocated: " + usedStr + " (" + pctStr + "%)";

0 commit comments

Comments
 (0)