Showing posts with label email. Show all posts
Showing posts with label email. Show all posts

Friday, 31 July 2020

How to configure email alert in AWS for EC2 instance, if CPU load is above 90%


If cpu utilisation is above 90%. then the below configuration will trigger an email notification conveying the same.


Practical steps:                                                                                                                                                       

1. Login to AWS console.                                                                                                                 
2.Ensure that your in correct require DC.                                                                                         
3.Navigate to Services --> under Management & Governance -->Cloudwatch as shown below.


4. Then the below display will display.                                                                                                 


5.Click on Alarms now.                                                                                                                                


6. Click on Create Alarm as shown below.                                                                                                              

7.Now click on select metric as shown below.                                                                                       


8.Click on EC2 as shown below.                                                                                                                   


9. Click on Per-instance Metrices.                                                                                                                   

10. In the new browser tab collect the EC2 instance id info from  running instance page(Services -->EC2-->Running instance -->collect the instance id number for correct EC2 instance for which CPU mail alert is required.

11. Based on the instance id number from the above step & CPU utilization from Metric Name column, select the correct entry, by select the check box as shown below.

12.Enter Alarm details:                                                                                                                                     Name & Description are free text, generally used for better identification among other alarms.   
is >= 90      is the actually value that will trigger the mail. 
1 minute out of 1minute, if the CPU utilization is above 90% for 1 minute out of 1 minute then mail will trigger.

eg: can use 5 minutes out of 3 minutes.
                  10 minutes out of 5 minutes.


13.Enter the recipient mail id by clicking on the New list option as shown below.                                                                       


14.Enter the Alarm description again here in the below highlighted field & click on create                       alarm option available at the right side bottom of the screen.                                                          


15.Then screen prompt for the mail confirmation screen. Open receipt mail id, inbox and conform the acknowledge the AWS alerts.


16.By click on the conformation link in the mail. screen similar like below will appears.                                   

17. Click on View Alert now.                                                                                                                        

18. Optional steps: To check the functionality of Alert. open the putty session for the EC2 instance and execute the lines while true; do echo; done;
so that CPU utilization reached to 90% with in short time.

To open the putty session for EC2 instance:                                                                                                  how to establish putty connection to AWS EC2 instance using AWS console      



19. Hurrah!!! It working.                                                                                                                                        


Thursday, 11 June 2020

Mail configuration in SAP Application level

Mail Configuration:

Major T-code involved:
  •  SCOT (old version systems)
  • SOST
  • SOADM (new version systems)
  • SBWP

  1. By Default all the users in SAP,is having one default inbox for email.can access with T-code SBWP. & with SBWP attachments can be sent.

    While sending mail in SBWP make sure that, The receipt type as internet address -->send
     Then the recipient can see his inbox in same t-code SBWP -->inbox.
  2. Types of mail configuration:
             1.Outbound mail configuration. 
                  SAP -->outlook.
             2. Inbound mail configuration.
                  Outlook -->SAP.

check list for Practical Steps involved in outbound mail configuration:

1. Set profile parameter in RZ10.
2. Maintain mail address in SU01 or Report RSDRCK7
3.Maintain default domain in SOADM or SCOT
4.Configure active SMTP node in SOADM
5.Schedule  send jobs transaction SOADM
6.Monitor / Trace outbound /in bound messages in T-code SOST.


check list for Practical Steps involved in inbound mail configuration:

1. Set profile parameter in RZ10.
2. Maintain mail address in SU01 or Report RSDRCK7
3.Maintain default domain in SOADM or SCOT
4.Create system user(s) with the profile S_A.SCON transaction SU01.
5.Maintain & active the SAP connect nodes in the SICF t-code.
6.Monitor / Trace outbound /in bound messages in T-code SOST.


Practical Steps:

1. Access T-code SOADM (new version system) or SCOT (old version system).


2. Perform the below highlighted navigation -->Outbound messages -->SMTP Notes -->click on the create node using the wizard -->click on Create Node using the wizard.


 3.In the below fields:
          Node : provide meaning description of node.
          Description: Provide meaningful description.
                
Then click on Continue as highlighted below.


4. Now enter host name and SMTP port details - 25 is the default SMTP port.                                            



5.Now select internet option and click on continue.



6. provide domain details here and click on continue.


                       ex: if you are work for icici back - *@icici.com* need to provide below.
                                                                               *@gamil.com* 
                             
                               



here i am considering gmail as my domain. 



7.Click on continue.




8.click on No option in the below screen and click on continue.


9. Provide the below info and click on continue.




10. Mail configuration at SAP level is completed now. the conformation screen looks like below.

        




11. Now activate the port number, HTTP and HTTPS connection details.

      To check, T-code: SMICM-->Go to( in the menu bar)-->services -->check the below highlighted       position.

12. Set profile parameters.

1.select the Default profile.
2.Choose Extended memory.
3.Finally click on Change.




13.click on parameter option. To add new parameter to the system.




parameter:     icm[ABAP]/server_port_1 
Value       :     PROT=SMTP, PORT=25,TIMEOUT=120,PROCTIMEOUT=120   




14. After setting the profile parameter in RZ10. Restart the SAP application as the above profile parameter is static type.

15. After restarting SAP Application.Check whether the SMTP port is activated or not in T-code: SMICM.




16. Create domain name.in the T-code- SOADM





provide domain name and click on save option.                                                                     




Note: to check whether all the users in sap application is updated with email id info in SU01, need to run the below report: RSADRCK7










 17. Ensure that user is updated with email data, correctly in SU01.                                       


 18. Now in SBWP t-code, send the sample email.to check whether the email configuration is working or not.







Trouble shooting: In case of any failed outbound emails, in the t-code SOST  all the failed mails can be found and can send again their.