I’m trying to setup process group detection rules to separate the instances of several IBM Http Servers.
Here is an example of the Apache configuration path of the process :
/data/IBM/HTTPServer/node-ihs90-ppd-netreveal-01/http01t/conf/httpd.conf
And the command line args :
/opt/IBM/HTTPServer/ihs90-ppd/bin/httpd -f /data/IBM/HTTPServer/node-ihs90-ppd-netreveal-01/http01t/conf/httpd.conf -k start -f /data/IBM/HTTPServer/node-ihs90-ppd-netreveal-01/http01t/conf/httpd.conf
What Dynatrace does automatically is group all the processes and instances under the same process group “Apache Web Server http*t” but as the instances do not have the same role, I would like to separate them.
What I would like to have is :
Apache Web Server http01t (node-ihs90-ppd-netreveal-01)
Apache Web Server http01t (node-ihs90-ppd-netreveal-02)
…
That suppose to be able to extract the “http01t” or at least the “01t” value and the “node-ihs90-ppd-netreveal-01” node from the configuration path or command line, what I could not achieve.
Is there a way to use regular expressions in the boundaries of the above form?
there are no regex in PG detection, this is on purpose because the pg detection happens rather early and is sensitive, so we decided not to include regex functionality.
1) try from “/http” to /conf with node id “/HTTPServer/” to “/http”
2) use naming rules on top to define nice display names once the group composition is good; you can use regex there.
Sorry, I did not see you answered my question.
I applied your settings, and I’m waiting for the processes to be restarted, which may take a while (processes are not automatically restarted).
I will come back when it’s done and tell you if that worked.
I tried your solution but it did not work as the rule is not case sensitive, it takes the bold part of the command line as process group and ihs90-prd/bin as node id :
I will have a look at your link and see if I can remove my rules and use environment varibles instead (we are running on Linux but I guess it works too).