As Beverly pointed out there are two ways of creating a custom events.
One way is to create it using the NMSDK api eventclass-add-custom.
Use the script plugin xml definition to create the custom event.
The above two links should help you in creating the custom events, Pls note you will have to write the logic and trigger the custom event using dfm event generate cli. They wont get generated automatically.
its sdk v5.1, im running with dfm 5.0 but it gives the error in the attached image, but it lets me continue. Should i be adding other docs for dfm 5.0? if i should be adding docs where are they and what are they called?
Im still not making any progress. I dont understand what the "source" is, in this case its invalid (its not invalid f i make it "1" like some other examples, but what does 1 refer to?).
Im looking for an idiots guide to this stuff, Im pretty much starting from 0. Any help appreciated.
<!--Event service will not drop duplicate events of this event class if is-allow-duplicates is true. Event is duplicate if it has same event-name as previous event with same event-class and the same event-source. It is false by default. If an invalid value is provided, it will be considered as true.-->
<!--Event service should keep multiple current events of this event class for each event-source. Valid only with is-allow-duplicates. It is false by default. If an invalid value is provided, it will be considered as true.-->
<!--The id/name of the source object of the event. This is the object id/short name/long name DFM generates for an object. Suppose, for a host, a host id/name can be found by using the CLI "dfm host list".-->
<!--The date-time when the event is generated This is the number of seconds elapsed since midnight on January 1, 1970.(UTC) If not specified or invalid timestamp specified , the time on the DFM server when the api is invoked is used.-->
If I want to create a custom event on a current custom eventtype I need to run "dfm eventtype list" from the dfm server cmd line to see the list of eventtypes. I dont seem to be able to list all eventtypes in the Zapi program.
The msg is displayed (as per inserted image).
Thanks for the pointers, all i need to do now is work out how to trigger 64-bit powershell scritps from DFM as a custom script 🙂