I have created a SCOM inbound connector based on the example code from How to Create Inbound Connectors. I run the code and my objects appear in operations manager as expected.
I cannot find any guidance as to how to get my discovery executable to get automatically called - ideally it would be run just like a "Discovery" snippet in the management pack. Another option I thought of would be a Agent Task but I'm not sure that can be scheduled. A third option would just be to install the code as a service completely outside of the management pack.
Is there a best practices on how to execute / schedule the execution of a custom inbound connector?
Inbound connector lifecycle and frequency needs to be managed by the developer.
What I follow is:
This allows much more relaxed reporting say 30mins or 1hr or even dynamic frequency during peak hour monitoring requirements.
Monitors/Alerts in management pack can then be a bit more aggressive in terms of frequencies.