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-(27.08%)];[java.exe-(0.58%)];[os_agent.exe-(0.50%)];[DsaServer.exe-(0.33%)];[java.exe-(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%).
Can someone point me in the right direction to accomplish this?
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.
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.
I think it is out of box ,because the alarm itself will display the process in that format,which is difficult to customize
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.
It comes standard in the newest version of CDM I believe.
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.
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
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.
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
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.
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.
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
You are welcome.
That is what I would expect as the field is treated as a string field.The only thing I think might work would be adding in none printing characters to the field.
So you would need to break up the alarm message into variables and add them back togeather with hard returns.such as $message = $var1.."\n"..$var2.."\n"..https://www.lua.org/pil/2.4.htmlHere is an example of how to parse a messagehttps://community.broadcom.com/enterprisesoftware/viewdocument/tech-tip-uim-lua-script-to-split-a?CommunityKey=170eb4e5-a593-4af2-ad1d-f7655e31513b&tab=librarydocuments