ONTAP Discussions

OCUM HTML Alerts

darraghos
2,103 Views
Hi guys, OCUM sends plain text alerts and our users find them difficult to consume on iPhones etc. I'd like to create some HTML alerts so I can make certain things stand out (i.e. bold text, colors etc.) and also add some business specific things such as system owner etc. What options would I have for this in OCUM. Alerts firing a script for example?
1 ACCEPTED SOLUTION

mbeattie
2,063 Views

Hi,

 

You can create an OCUM alarm and attached a script to the alarm which is trieggered when the event occurs.

You can enuemrate the event information from environment arugments or use the NMSDK.

 

You can also invoke SQL queries in your script on the OCUM database...EG if you wanted cluster name, contact, location...

 

SELECT
   name AS 'cluster_name',
   contact,
   location
FROM
   netapp_model.cluster
WHERE
   cluster.name = 'cluster1'

Once you have all the event details and additional information you require, you'd need to format the results into HTML\CSS and send them as an email.

Here are some examples

 

http://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/Unified-Manager-6-3-Alert-scripts/td-p/116507

https://community.netapp.com/t5/Developer-Network-Articles-and-Resources/Query-OCUM6-Database-using-PowerShell/ta-p/98184

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

1 REPLY 1

mbeattie
2,064 Views

Hi,

 

You can create an OCUM alarm and attached a script to the alarm which is trieggered when the event occurs.

You can enuemrate the event information from environment arugments or use the NMSDK.

 

You can also invoke SQL queries in your script on the OCUM database...EG if you wanted cluster name, contact, location...

 

SELECT
   name AS 'cluster_name',
   contact,
   location
FROM
   netapp_model.cluster
WHERE
   cluster.name = 'cluster1'

Once you have all the event details and additional information you require, you'd need to format the results into HTML\CSS and send them as an email.

Here are some examples

 

http://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/Unified-Manager-6-3-Alert-scripts/td-p/116507

https://community.netapp.com/t5/Developer-Network-Articles-and-Resources/Query-OCUM6-Database-using-PowerShell/ta-p/98184

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public