Since this system has been delicate, and support is very difficult, if I can't find the root cause of this (which may simply be a program bug) all I want to do is install a program that monitors processes and starts them automatically if they've stopped for whatever reason. I looked up a few things and a program called 'Monit' was at the top of the list. I was able to install it in a Virtual Machine for testing, but the problem is, in CentOS on the actual machine, when I run the following command:
Code: Select all
services --status-all
Code: Select all
VoiceMail Pro is running
Monit seems to require a PID file to monitor processes. Here is the syntax of the configuration file it is using for checking that a process is running:
Code: Select all
check process [process-name] with pidfile /usr/local/folder/process.pid
start program = "/etc/init.d/processname start" with timeout 60 seconds
stop program = "/etc/init.d/processname stop"
1. Is that command i used above to find processes running ('service --status-all') the right one to use to find the process name I need? If so, why does it have a space, and will that be a problem? If not, how do I find the actual system name for the process I want to monitor?
2. How can I find the PID file associated with this process? Does it even exist? What if it doesn't? Can I make one for this purpose?
3. When I do a listing of the init.d directory, it shows a file named 'vmpro'. Should this be the 'process-name' or the 'processname' (as used in the code above)?
4. There does not seem to be any associated file to this program inside the /var/run directory where other pid files are. Is this normal?