Automatically activate service after discovery using plugin

Not sure about the “custom plugin” you mentioned. Perhaps you can explain your requirements in more detail?

In general, you can configure the “Periodic service discovery” ruleset to not only regularly check for new services but also to automatically add them and activate changes.

(section “Adding services automatically”)