I am monitoring a process 'MYPROCESS32' and suspect a second instance is being started.
Is there any way to detect and monitor this second instance (new PID #)? Thanks.
We done something like this before to check for duplicate processes:
@procs = ps -ef | grep process | egrep "perl|grep";
print "Statistic:$proc";
All instances of a processes that match the process name as defined in the component monitor are monitored by default. If for example you create a process monitor for notepad.exe and you have three instances of notepad running on the server, all three will be monitored in SAM with no additional configuration. You can then define a trigger condition in the Advanced Alert Manager based on Process Instance Count as needed.
I have another twist to my questions.
Can I detect and alert on the CPU time used on a Process Name or its PID?
Our developers are needing this type of information.
Thanks again!
SAM will alert you when any instance of a particular process exceeds a defined threshold or falls within a defined trigger action. So in my example above, if one of the three instances of notepad.exe spiked to 90% an alert would be generated based on the predefined threshold settings.