You could write a custom script to do this easily (you'd need to remember state, but that's easy). I'm not aware of any built-in Hobbit check that would do this however. Maybe somebody else knows.
Other things to consider trying (using standard Hobbit stuff):
When the process restarts, does it do anything in a logfile? i.e., could you have Hobbit search for a restart text message in a logfile? Is the logfile deleted and recreated at restart? You could have Hobbit check the timestamp on the logfile possibly. When the process restarts, does it write it's PID to a file? Check the timestamp of that PID file.
From: Moore, Paul [mailto:Paul.Moore at verizonbusiness.com] Sent: Tuesday, January 29, 2008 8:03 AM To: hobbit at hswn.dk Subject: [hobbit] Process ID Tracking.
Is hobbit capable of tracking the PID of a process that it is watching for? I am in need of identifying if a process restarts with a new process id. Several of our applications are self healing but we still need notification that this did indeed restart. Any suggestions would be helpful.
Paul Moore