【发布时间】:2017-10-07 22:47:16
【问题描述】:
我在 Ubuntu 16.04 上设置了监视器。
sudo monit --version
This is Monit version 5.16
Built with ssl, with pam and with large files
对于给定的进程,它目前在下面列出:
status Running
monitoring status Monitored
pid 8724
parent pid 8691
uid 0
effective uid 0
gid 0
uptime 6d 23h 36m
threads 7
children 0
memory 190.6 MB
memory total 190.6 MB
memory percent 19.2%
memory percent total 19.2%
cpu percent 6.8%
cpu percent total 6.8%
data collected Sat, 07 Oct 2017 22:41:49
我的问题是,有没有办法也可以在此列表中列出流程参数?基本上,我不仅想监控正常运行时间、负载等矩阵,还想监控进程调用和运行的参数是什么?是否有任何其他替代方法可以提供类似的基于 json 的响应?
谢谢。
【问题讨论】:
-
Stack Overflow 是一个编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参阅帮助中心的What topics can I ask about here。也许Super User 或Unix & Linux Stack Exchange 会是一个更好的提问地点。