31 Jul 2020 12:27 PM
Dear All,
I am facing a challenge to create a naming rule for the "IBM WebSphere Application Server". By default, the processes detecting "WebSphere AS CellXXXXX ClusterXXXXX (NodeXXXXX)".
I want to name them as "WebSphere server only". The WebSphere CellXXXXX ClusterXXXXX (NodeXXXXX) are common for all "WebSphere servers".
Regards,
Babar
Solved! Go to Solution.
31 Jul 2020 01:28 PM
Hi Babar,
So if I understand this correctly, currently all WebSphere Process Groups and Processes are named like:
WebSphere AS CellXXXX ClusterXXXXXX (Node XXXX)
And this is too granular. You want them to have the simple name of:
WebSphere Server
Is this correct?
In that case you will have to create a Process Group Naming rule as follows:
This will have the following effect:
If I misunderstood the requirements, please let me know.
Best regards,
Radu
31 Jul 2020 01:33 PM
Hey @Babar Q. this can be done quite easily. Go int your settings and select Processes and Containers > Process Group Naming and create a new rule.
If you put in: Websphere on {Host:DetectedName} then on each one the associated host name will appear in the name of the process! let me know if you need a hand!
01 Aug 2020 07:35 AM
I have done this several times before asking the question in the community. The challenge is when you apply this rule, it will change the process name with all the processes names e.g. the new name will be PRO01, PRO02, PRO03, PRO04 instead of the individual process name. I guess it is because of the common CellXXXX ClusterXXXXXX (Node XXXX).
I will quote here @Ruben G. case, which seems similar to my case.
Regards,
Babar
03 Aug 2020 09:07 AM
@Babar Q. - I think what you need to do here is change the detection rules for these WebSphere Processes. Because of how entities work in Dynatrace, Process names are inherited from Process Group names. And because your Process Group is covering hosts PRO01, PRO02, PRO03, PRO04 - then when you say the name should be "WebSphere {hostname}" then all hosts within that process group are taken into the renaming.
With Process Group Detection rules you can actually tell Dynatrace how to create these process groups and have a more segmented grouping that limits the group to 1 per host. What you need to understand here though, you need to use a Process property that is unique across these servers.
Let's take an example:
The above process group detection rule will work on WebSphere processes, and every Process Group will be detected and named strictly by the WebSphere Server ID. So your Process Groups and Processes will become "WebSphere server01", "WebSphere server02", etc.
You will still have to create a process group naming rule as indicated by Chad if you want to pull in the hostname to have the naming like "WebSphere on PRO01".
However, if "WebSphere server01" is actually configured on more than one host (let's say we detect it on both hosts PRO01 and PRO02). Then the renaming will still have the effect of "WebSphere on PRO01, PRO02" because the process group has more than 1 member.
So when you create your process detection rule, you must make sure that whatever process property you are adding as the group identifier is unique across your hosts, otherwise you will always be in the same issue with the renaming.
Does this make sense?
@Ruben G. FYI I think you are having the same problem.
03 Aug 2020 01:46 PM
Hello @Radu S.
Do we need a restart after the process group detection rules creation to take effect?
I applied the below rule.
Regards,
Babar
03 Aug 2020 01:52 PM
I dont believe so. Laos if you have the hosts in separate host grouping then it will put each process into its own grouping even if that app runs on the hosts across multiple host groups
03 Aug 2020 02:06 PM
Hello @Chad T.
Apologies, I could not understand. First of all, there is no host group, and secondly, each host has 2 WebSphere server processes.
Now the question is whether the above rule will apply to fix the subject issue with or without restarting the processes names or not?
Regards,
Babar
03 Aug 2020 02:09 PM
If memory Serves me correctly, the process will need to be restarted if your doing the rename via the custom detection
03 Aug 2020 02:57 PM
Hello @Chad T.
OK. Let me check with the application team if they can restart the process to provide you the feedback.
Did you personally experience what we are trying to achieve here?
Regards,
Babar
03 Aug 2020 03:07 PM
we did our renames via the first method that we shared with you. we did however create a custom process group and process as it was not detected out of the box. This required that process restart. The first method does not require a restart - i can take 5 - 15 mins depending on the size of your monitored infrastructure
03 Aug 2020 03:14 PM
Hello @Chad T.
Yes. The first option does not require a restart as I tested several times. So, it means the process group detection rules need a restart. Did you get a chance/challenge to work on the process group detection rules?
Regards,
Babar
03 Aug 2020 03:48 PM - last edited on 28 Mar 2023 12:36 PM by Ana_Kuzmenchuk
We did it once a few months ago - Had to reach out to support for this as we had some hiccups. The documentation seemed a bit unclear as to how to add the new process and group. I would recommend opening a support chat or a support ticket.
The process group monitoring detection rules configured in the previous way only works on processes that can be deeply monitored. The processes that are not considered to be deeply monitored as they dont fall under that category.
The workaround for this would be to user the custom process group detection.
This is found under Settings>Process and Containers>Process Group Detection>Custom Process group detection Rules.
We had to do both, the one as described in your most recent image share and the one I just posted.
06 Aug 2020 09:09 AM
And also just to iron out some confusion here....
Custom detection rules
Are only required when Dyantrace does not detect your process at all. So basically you point it to the exact path where the .exe is located and you tell it "hey, this is a process. When you see it running, monitor it".
Since @Babar Q. is already seeing Processes for WebSphere, there is no need to create any rule under this section.
You only need to work with Process Detection Rules (which assume that you already have visibility of your processes, but you just want to change how they're grouped):
@Chad T. you are correct, this option does only work with "deeply monitored processes". WebSphere is a deeply monitored process, it is based on the Java technology and it is a known framework around it so we monitor it via deep injection. This option will work with WebSpehere.
06 Aug 2020 09:02 AM
Hi all,
Please know that Process Group Detection Rules will require a restart. It is at process startup time that we detect all the properties and apply the new rules, so that's why it is a requirement. Sorry, I should have specified this.
06 Aug 2020 11:56 AM
Dear @Radu S.
Thank you for the clarification. I will share the feedback. once done with the complete exercise.
Regards,
Babar
31 Jul 2020 05:44 PM
i face this with a rule on Process group detection rules, for the instances that contains certain text on the node group itself and make them a cluster they take the websphere server name as process name and apply for all the instances across the servers.
naming the process should look nice but was not the real solution for me ("for the services") some time ago.
31 Jul 2020 05:59 PM
you can exclude the naming rule via the conditions if it is applying to aspects you dont intend it to.
31 Jul 2020 06:11 PM
not, i mean, that the way that the service is created isnot like a cluster if i changed the naming of the proccess, they still will be created as unique service. for me the naming rule for the process didt work sometime ago.
31 Jul 2020 06:19 PM
If your looking to change the service name that can be done just like the process name via the settings but under Services
31 Jul 2020 06:50 PM
if is done on that way and you have 4 instances of a was, you will get
service1
service1
service1
service1
4 services with the same name in instances named the same. as i say. sometime ago (8month) process naming didt work fine for me. because i want all services in cluster as the instances.
31 Jul 2020 07:20 PM
So why not just do this:
Websphere - Host Name - Service Detected Name
that way you can see exactly what the technology is, the host and the name. Keep in mind you can change this up and add other data in the name as needed.
Here is a great example of this:
10 Nov 2022 06:09 AM