DX Infrastructure Management

Expand all | Collapse all

Email Notification Message Body

  • 1.  Email Notification Message Body

    Posted 04-13-2017 03:51 PM

    I have an email notification and it contains the following section (obtained from the $message variable) within the email body:

     

    Average (5 samples) total cpu is now 31.45%, which is above the error threshold (30%).Top Processes [splunkd.exe[764]-(27.08%)];[java.exe[4176]-(0.58%)];[os_agent.exe[2264]-(0.50%)];[DsaServer.exe[1716]-(0.33%)];[java.exe[2012]-(0.25%)]

     

    I would like to format it as follows so that it is easier on the eyes to read and read quickly:

     

    Average (5 samples) total cpu is now 31.45%, which is above the error threshold (30%).

     

    Top Processes

    [splunkd.exe[764]-(27.08%)]

    [java.exe[4176]-(0.58%)]

    [os_agent.exe[2264]-(0.50%)]

    [DsaServer.exe[1716]-(0.33%)]

    [java.exe[2012]-(0.25%)]

     

    Can someone point me in the right direction to accomplish this?



  • 2.  Re: Email Notification Message Body

    Posted 04-14-2017 01:28 AM

    Then probably you might need to modify the existing HTML template which the emailgtw is using for formatting of email alarms or try creating a new template as per the requirement.



  • 3.  Re: Email Notification Message Body

    Posted 04-14-2017 12:36 PM

    The HTML template is fine. The problem is the highlighted section I want to format noted above is all contained in one variable $message.  I was hoping there were some controls behind the scenes I can edit for this variable.  I fear this is a coding issue that would require an update instead.  



  • 4.  Re: Email Notification Message Body

    Posted 04-17-2017 10:10 AM

    I think it is out of box ,because the alarm itself will display the process in that format,which is difficult to customize



  • 5.  Re: Email Notification Message Body

    Posted 04-20-2017 12:42 AM

    Hi cduryea,

     

    Need your little help.

    I am very much interested in the alert which you have configured to monitor CPU utilization and it shows the top 5 utilization process as well. Would really like to know how you have configured it. 

    I have a very critical requirement from client on this.

     

    Thanks

    Ankur



  • 6.  Re: Email Notification Message Body

    Posted 04-20-2017 01:31 AM

    It comes standard in the newest version of CDM I believe. 



  • 7.  Re: Email Notification Message Body

    Posted 04-20-2017 01:36 AM

    Ankur,

    I'm going on memory on this as I do not have UIM in front of me.

     

    In your cdm setup you will have an option to collect the Top processes. Enable this and set it to 3 or 5. I did this through MCS 'setup cdm' in UMP USM groups so I don't recall where this option is located in cdm through IM. I can look in the morning and update you more specifically.

     

    Then in IM, go to your primary hub, open the configuration of your cdm probe, click setup tab, click messages tab. You will see a box full of messages and their severity level and below that you will see several small tabs, the first one being CPU. On this CPU tab on the left you will see two rows. The tops says something. Like CriticalCPU and the bottom one I think says LowCPU. Each has a field next to them I believe with Custom... You want to click and drag the CPUErrorProcesses message from above and drop it on the field next to CriticalCPU, this will change its contents. You want to drag CPUWarningProcesses to the field next to Low CPU. Click Apply and Ok. Do note if you are using MCS to configure cdm, I do know from experience that you will need to redo this section in cdm of every device every time you make a configuration change in cdm to a device. There is a way to simplify this reapplying but I have not gotten to that yet though I do plan to soon as my device count is climbing quickly. As an administrator I don't like doing the same task over and over again so I plan to simplify.

     

    Sorry I cannot be more specific at the moment but this should get you started in the right direction of what to search for.



  • 8.  Re: Email Notification Message Body

    Posted 04-20-2017 01:53 AM

    You would have it set by default under Advance tab if you are installing a new version of cdm 

     

     

    In case you have upgraded from an older version to a new version you would need to manually update the message definitions for CPU usage by drag and droping the CpuErrorProcesses and CpuWarningProcesses 

     



  • 9.  Re: Email Notification Message Body

    Posted 04-20-2017 03:13 AM

    Thanks cduryea and Phani for quick support. In my case the cdm probe is on the latest version 5.80 and in message definitions, both CPUErrorProcesses and CPUWarningProcesses are not present. Snapshot FYR.

     



  • 10.  Re: Email Notification Message Body

    Posted 04-20-2017 03:24 AM

    You need to scroll down the message ID u can see the CPUErrorProcesses  and CPUWarningProcesses just drag and drop to cpu usage text box.

     

     It will work only for cpu alert ,nor memory



  • 11.  Re: Email Notification Message Body

    Posted 04-20-2017 05:10 AM

    Hello Everyone,

     

    Thanks to everyone for the help. I was able to see the message definitions. I have configured it and it stands resolved now.

    Would also like to know if the same can be implemented in memory case as well.

     

    Thanks

    Ankur



  • 12.  Re: Email Notification Message Body

    Posted 04-20-2017 03:44 PM

    Let me clarify, the cdm 5.80 probe is defaulted to the proper values to capture top processes.  The cdm 5.80-MC (deployed and used by MCS) is not defaulted and must be configured like I mentioned.  If you do not use MCS then you should be fine assuming you have 5.80 or higher.



  • 13.  Re: Email Notification Message Body

    Posted 04-20-2017 07:47 PM

    No, similar option is not available for Memory , there are few ideas already open for this. You can vote for one if you nee it 

     

    UIM cdm probe:Top Memory consuming process in alarm 



  • 14.  Re: Email Notification Message Body

    Posted 04-20-2017 08:40 AM

    You are welcome.