| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
9年前发布

非死book开源的操作系统监控工具:osquery

非死book开源的操作系统监控工具osquery,可以用于OSX和Linux操作系统,osquery能够实现底层操作系统分析和监控。osquery把一个操作系统作为高性能的关系数据库对象。这使您可以编写基于SQL的查询,探索操作系统的各项指标数据。基于osquery,以下各种都能抽象成SQL Table如

  • 正在运行的进程
  • 加载的内核模块
  • 打开网络连接
SQL Table通过一个易于扩展的API来实现。已经有存在各种表,还有更多的表正在编写。为了更好地理解osquery,下面是一个SQL查询示例:
--------------------------------------------------------  -- get the name, pid and attached port of all processes   -- which are listening on all interfaces  --------------------------------------------------------  SELECT DISTINCT     process.name,     listening.port,     process.pid  FROM processes AS process  JOIN listening_ports AS listening  ON process.pid = listening.pid  WHERE listening.address = '0.0.0.0';    --------------------------------------------------------  -- find every launchdaemon on an OS X host which   --   * launches an executable when the operating   --     system starts  --   * keeps the executable running   -- return the name of the launchdaemon and the full   -- path (with arguments) of the executable to be ran.  --------------------------------------------------------  SELECT     name,     program || program_arguments AS executable   FROM launchd   WHERE     (run_at_load = 'true' AND keep_alive = 'true')   AND     (program != '' OR program_arguments != '');

项目主页:http://www.open-open.com/lib/view/home/1414658952450

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1414658952450.html
osquery 系统监控