3 weeks ago
Do you need to select resource type when adding an alert in OCUM 6.x. In am told you can set an alert based on either resource type or by selecting event type. Is that correct ?
Solved! SEE THE SOLUTION
3 weeks ago
I've tested this for you on OCUM 7.1P2 GA
Its possible to create an OCUM alarm and configure it to apply to either a resource type (EG cluster, node, vserver etc) or by event status (Critical, Error, Warning).
As you'll see in the image below the alarm has no resource type configured, it applies to "all critical events".
I tested this configuration works by assigning a one liner powershell script to the alarm:
$Args | Out-File -FilePath $($(Split-Path($MyInvocation.MyCommand.Path)) + "\" + $((Get-Date).ToString("yyyy_MM_dd_HH_mm_ss_fff")) + "_event_id_" + $Args + ".log")
Note: All this does is create a file by date time and event ID number in the scripts working directory (Where you upload the alarm script to)
The default location for the alarm scripts is "C:\Program Files\NetApp\ocum\scriptPlugin"
When testing the alarm (by admin failing a disk on a simulator) it generates the following events:
I configure 3 alarms (one for critical, error and warning event types). To verify if the alarm script created a file for each event associated with the alarms i checked that 3 files were created.
C:\Program Files\NetApp\ocum\scriptPlugin>dir /b | find /i "2017_07_03_09" 2017_07_03_09_39_55_053_event_id_18.log 2017_07_03_09_40_16_136_event_id_19.log 2017_07_03_09_40_16_167_event_id_20.log
So to summarize you, when configuring OCUM alarms you can:
Hope that helps