I am currently defining dfm alarms, calling the execution of a powershell script. In this script, I am parsing the DFM environment variables provided by DFM, to take conditional actions (send some nagios alerts,...) based on the nature of the event.
For some of those events, I would like to be able to call dfm inside my script to generate customized events, to which I could associate other alarms for instance.
From what I understood, I should first create a custom event (one that is not in the list of builtin events), and then use the command dfm event generate to trigger the creation of this custom event, that will then appear in DFM and execute associated alarms...
I have not been able to find any working example of such a customization. Could someone share some experience with me?
Quick question: What/Where does the xml go to define custom events and event classes on OC? Today I run a script manually to check my snapmirror destination vols are >= the autosize max set on the source vols, and I'd like to generate custom alerts/alarms in Ops Manager if the script finds any that are non-conformant. One of many possibilities!!
Re: How can I use "dfm event generate" to trigger a custom dfm event?
If you package your script, help file and XML in a zip file of the same name as the script, you can use the script installation tools in OnCommand Unified Manager to "install" your script as a plugin. At that time the custom events in the XML file will appear in places such as dfm eventtype list along with all the default events.