Python中有没有流行的库来监控Linux/Unix系统?

发布于 2024-10-05 13:30:57 字数 63 浏览 1 评论 0原文

在erlang中,有一个os_mon模块负责监控系统,但是我还没有找到像python那样的库,有吗? 非常感谢!

In erlang, thare is a os_mon module responsible for monitoring system, but I haven't found the library like that for python,is there any?
thank you very much!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

够钟 2024-10-12 13:30:57

有两种方法可以实现此目的:

  1. 使用 subprocess 调用另一个可以为您获取此信息的进程。
  2. 使用 PyMeter。轻松做你想做的事。

Two ways of doing this:

  1. Use subprocess to call another process that can get this information for you.
  2. Use PyMeter. Does what you want easily.
流年已逝 2024-10-12 13:30:57

就像 Sukhbir 之前建议的那样,您可以通过使用 subprocess 调用另一个可以为您完成此操作的工具来超越 Python。看看Dstat。它以易于理解的格式返回大量指标,并且可能正好适合您的需求。

Dtat 主页 -
http://dag.wieers.com/home-made/dstat/

Like Sukhbir suggested earlier, you can look beyond python by using subprocess to invoke another tool that can do this for you. Look at Dstat. It returns a very large number of metrics in easily digestible format, and might just suit your needs.

The Dtat homepage -
http://dag.wieers.com/home-made/dstat/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文