简体   繁体   English

Linux进程性能监视代理

[英]Linux process performance monitoring agent

Hi Stackoverflow community, 您好Stackoverflow社区,

For our tool we're trying to build a agent to remotely monitor linux processes, the resources they use, i/o info and tcp/ip connectivity. 对于我们的工具,我们正在尝试构建一个代理以远程监视Linux进程,它们使用的资源,I / O信息和TCP / IP连接。 This is to gather these metrics and send them over to the server using log4 . 这是为了收集这些指标,并使用log4将其发送到服务器。 We're doing this in windows use wmi and log4net and looking to do the same in linux. 我们正在Windows中使用wmi和log4net进行此操作,并希望在Linux中进行相同的操作。

In essence, doing what top, lsof -i and iostat do then sending it to the central server. 从本质上讲,lsof -i和iostat做什么,然后将其发送到中央服务器。

Have seen some initiatives at: 在以下位置看到了一些倡议:

Looking at the source code of top, it directly queries /proc whereas lttng needs to install kernel modules. 查看top的源代码,它直接查询/ proc,而lttng需要安装内核模块。 Bearing in mind, the end use is for enterprise systems, we would like to keep it as close to the kernel as possible without needing to add new modules. 请记住,最终用途是用于企业系统,我们希望使其尽可能靠近内核,而无需添加新模块。

Our goal is to monitor what each process on the box uses (cpu/mem/io etc), any process info (eg version) and where it connects tcp source and destination and send this to the server using log4. 我们的目标是监视盒子上的每个进程使用什么(cpu / mem / io等),任何进程信息(例如版本)以及它在哪里连接tcp源和目标,然后使用log4将其发送到服务器。 Happy for it to be in any language C/php/python/ruby etc 很高兴它可以使用任何语言C / php / python / ruby​​等

Do you have any suggestions? 你有什么建议吗?

Bill 法案

"In essence, doing what top, lsof -i and iostat do then sending it to the central server" “本质上,首先执行lsof -i和iostat的操作,然后将其发送到中央服务器”

Try SeaLion . 尝试SeaLion Its exactly what you want. 它正是您想要的。 It will also give you the flexibility to add more commands as and when your monitoring requirements change or increase. 当监视需求更改或增加时,它还使您可以灵活地添加更多命令。 You wouldn't have to look for other tools. 您无需寻找其他工具。 It is lesser known but works very easily; 它鲜为人知,但很容易工作。 simple setup and a great timeline to view the past data in. 简单的设置和一个很好的时间表来查看过去的数据。

对于真正的企业监控,我将看一下Megamon( http://www.megamon.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM