【发布时间】:2017-03-04 18:34:15
【问题描述】:
我需要为我的 filbeat/metricbeat 进程添加 monit 检查器。 我想通过pid文件查看进程,但是在centos 7中找不到系统存储这些文件的位置。
例如在我本地的 ubuntu 14.04 中,它存储在此路径下 /var/run/filebeat.pid、/var/run/metricbeat.pid。
我尝试在整个系统中查找文件(find / -name filebeat.pid),但我找不到。
如果没有为什么要通过pidfile检查,我还有其他方法可以检查进程状态吗?
任何建议都会有所帮助,在此先感谢)
【问题讨论】:
标签: linux monit filebeat metricbeat