I am running circusd for my python's service and want to use monit for the same. Hence, I need to know the pid file in order to monitor circusd. All I can see in the ps aux
command is Python processes but no sign of Circusd. Is the daemon under the hood and runs the Python programs as instructed by my confg file of circusd? Or can I see whether circusd is among the running processes?
How do I know where is the pid file of circusd? Is it possible to achieve this aim of getting the pid file of circusd via python?
Note: I am using Linux(Ubuntu 16.04)
If you want to find the pid file , follow the below:
Moreover, if you want to check specific process and you don't have it is pid file, you can use matchproc to match the process instead of using it pid file or you have to create a pid file manually .
You can refer to this below example:
check process vsftpd matching vsftpd if failed port 21 protocol ftp then alert