Also, I have a question that I would appreciate help with.
I need to check for a process every 20 seconds but I need to send the output of to a centralized log system.
For example, how could I achieve this lets say with Nagios? Would watch be the answer? Does watch have to be combined with cron or something?
Help is very much appreciated!
Note: Can someone share the simple watch script please, posted above?