Xymon Mailing List Archive search

Process ID Tracking.

list Ralph Mitchell
Tue, 29 Jan 2008 11:57:17 -0600
Message-Id: <user-319b0388b3e4@xymon.invalid>

On Jan 29, 2008 11:24 AM, Haertig, David F (Dave) <user-68874b735d77@xymon.invalid> wrote:
 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.
If the process gets rstarted by a script, maybe the script could write a log
entry for Hobbit to monitor??

Ralph Mitchell