I’m writing a tpl that, amongst others, triggers on a ‘SAP R/3 Application Server’ SI.
It should only trigger on certain SAP servers that have a certain string in the cmd of the primary process from the SI.
I have made the trigger below, but of course it doesn’t work.
I’ve tried to look the answer up in the documentation but I can’t find it.
How can I match the underlying process correctly?
triggers
on si := SoftwareInstance created, confirmed, modified
where (type = "Oracle Database Server"
and instance matches regex "PF[0-9]+")
or (type matches regex 'SAP R/3 Application Server'
and InferredElement:Inference:Primary:DiscoveredProcess.cmd matches regex "PF[0-9]+")
or (type matches regex 'SAP PF Tomato');
end triggers;
