I have a customized plugin which discovers a server based on the process name
and collects the basic metrics using the SIGAR API. Things work very fine when a single instance of the server is run in system.
But when two or more instances are running, the process query fails stating that more than once processes are found and i'm not able to capture the metrics.
My process query is State.Name.ct=processName.
I went through a lot of options figuring out that,
State.Name.ct=processName,Pid.Pid=processId ==> would result in the specific process identification.
But again in case of servers who dont run on specific process id's [i dont have a PID file].
Is there any way to distinguish the process based on the ports in which the process runs.
Or is it that in Hyperic, only one instance of a server per system will be identified by the agent. I dont believe it might be like that. Please let me know if it is possible .
Thanks & Regards,
Vinky