Application Operations in SAP Solution Manager 7.2 provides System and Application Management capabilities for central monitoring, alerting, analytics, and administration of SAP centric cloud and on-premise solutions.
This wiki content has been moved to the SAP Solution Manager 7.2 expert portal. Any child pages of this wiki are deprecated and no longer maintained.
The Monitoring and Alerting Infrastructure provides the enhancement spot ALERT_REACTION where you can specify custom alert reactions.
This enhancement spot and the corresponding Business Add-In (BAdI) BADI_ALERT_REACTION are described in the document MAI Alert Consumer BAdI Interface.zip.
This functionality can be used to trigger additional events in case of an alert like for example:
- Calling an external web service on a 3rd party incident management tool
- Write information to a log file
- Send SNMP trap to third party tool.
A standard implementation of this functionality is available with Solution Manager (see document HOW-TO GUIDE SNMP Trap Adapter.pdf below) - Execute additional OS commands on the SAP Solution Manager.
A standard implementation of this functionality is available with Solution Manager (see document HOW-TO GUIDE OS Command Adapter.pdf below)
Customizing email notifications
There is also a BAdI interface which allows you to change the content of an email notification before it is sent. This interface is described in the SAP note 1747633.
Documents
12 Comments
Mike Zhang
Thanks a lot.
This is very helpful.
Michael Sharrar
I agree. This information is very helpful. I will be able to use the OS Command Adapter to send alerts to our third party ticketing application (HP Service Manager). Thanks.
Former Member
HI Michael,
Could you please confirm how you have filtered the alerts via OS command Adapter, if possible could you please provide the SM49 command which you have used
Michael Sharrar
You can define with values you want to pass to the OS level script via the OS Command Configuration (check the above guide) using this URL string:
http://<SolutionManagerHost>:<port>/sap/bc/webdynpro/sap/mai_os_command_config
I created a custom external command in SM49 (ZWRITE_TO_FILE) and then also created a custom OS level script to pass the information to HP Service Manager.
Within the OS Command Configuration I set the following:
Configuration details for:CONFIG_TYPE = OPTIONS ; FILTER_VALUE = OS_CMD_REACT
Configuration details for:CONFIG_TYPE = PARAMETERS ; FILTER_VALUE = OS_CMD_REACT
[MAI:ALERT:MO_TYPE
Former Member
Can you share the content of ZWRITE_TO_FILE?
Former Member
Hi Mathias,
regarding the SNMP trap configuration: How can I configure the SolMan to send SNMP traps to multiple servers at once? Would it suffice to enter those hostnames seperated by a ";" in the HOSTNAME field of step 4.2 or is a different approach required?
Thanks.
Former Member
Really helpful! Is there also a possibility to receive snmp traps in Solman?
Mathias Bley
No, the BAdI implementation can only be used to send SNMP traps based on alerts generated by SAP Solution Manager. It cannot be used to receive SNMP traps and generate alerts in SAP Solution Manager.
Former Member
Does anybody know a possibility, to debug the badi-methods?
Thank you
Former Member
Is there any "How To Guide " to send alert through the Webservice to the 3rd Party Ticketing Tool.?
Thankyou & Best Regards
Satish.
Former Member
Hello Mathias
I am unable to find info about the Webservice Konfiguration to send Alerty to the 3rd Party tool in SolMan. If you have any "How to Guide" or any other notes. Please let me know.
Best Regards
Satish.
Piyush Vadher
Hello Mathias,
What is the purpose of assigning Auto Reaction.
And it does not show anything, auto reaction assignment list is empty, from where it gets and what should be in the list.
I want to perform some Automation for Alert resolution, hence I need more details on Auto Reaction assignment.
Thanks,
Piyush