Skip to content

Releases: n9e/win-collector

VERSION 0.3.2

05 Jan 14:12
Compare
Choose a tag to compare

这次真的修复了 tcpip 的数据不正确的 bug 了

VERSION 0.3.1

04 Jan 16:47
Compare
Choose a tag to compare
  1. 当 shell 无空格时,当作字符串直接report处理。以支持没有 powershell 的终端
  2. 修复一个 tcpip 数据采集不正确的 bug

VERSION 0.3.0

20 Oct 15:58
Compare
Choose a tag to compare

支持夜莺v3的report上报功能
配置变化部分如下
win-collector.yml

ip: # 默认也是自动取服务器第一张网卡的 ip,如果不正确在 specify 内直接配置,和 identity 一个原理
  specify: ""

stra: # n9e v3 使用这个地址,n9e v2 可以不配 stra 部分,或者配 /api/portal/collects/
  api: /api/mon/collects/ 

enable: #如果 report 开启为 true 的话,则通过 report 内的配置上报服务器相关信息
  report: true

report:
  # 调用ams的接口上报数据,需要ams的token
  token: ams-builtin-token

  # 上报周期,单位是秒
  interval: 10

  # physical:物理机,virtual:虚拟机,container:容器,switch:交换机
  cate: physical

  # 使用哪个字段作为唯一KEY,即作为where条件更新对应记录,一般使用sn或ip
  uniqkey: ip

  # 如果是虚拟机,应该是获取uuid
  # 这些 powershell 测试应该至少可以在 win2008r2 上运行,也可以更换成其他的 shell
  sn: (Get-WmiObject -ComputerName $env:ComputerName -Class Win32_BIOS).SerialNumber

  fields:
    cpu: (Get-WmiObject -class Win32_ComputerSystem).numberoflogicalprocessors
    mem: Write-Host $('{0:f2}' -f ((Get-WmiObject -class "cim_physicalmemory" | Measure-Object -Property Capacity -Sum).Sum/(1024*1024*1024)))Gi
# disk 默认取的是 C盘,也可以改成其他盘,或者修改 shell 改为所有盘符之和
    disk: Write-Host $('{0:f2}' -f ((Get-WmiObject Win32_LogicalDisk -ComputerName $env:ComputerName -Filter "DeviceID='C:'" | Select-Object Size).Size/(1024*1024*1024)))Gi

address.yml
增加 ams 的配置

ams:
  http: 0.0.0.0:8002
  addresses:
    - 192.168.0.100

VERSION 0.2.2

18 Sep 12:20
9b70ff2
Compare
Choose a tag to compare

修复了WMI5+时产生的内存泄露问题

VERSION 0.2.1

16 Jun 06:47
Compare
Choose a tag to compare
  1. 在采集端口配置时,如果 127.0.0.1 无法探测到。则尝试获取接口 ip 列表并逐个尝试。因此即使不监听 0.0.0.0,且 identity 不是 ip 的情况下,也可以探测到端口状态并监控了

VERSION 0.2.0

28 Apr 16:42
Compare
Choose a tag to compare
  1. 支持 plugin

VERSION 0.1.3

23 Apr 10:44
Compare
Choose a tag to compare
  1. fix conn shutdown when transfer restart
  2. fix panic out of range on network adapter enable check

VERSION 0.1.2

13 Apr 13:28
Compare
Choose a tag to compare

init rpc clients first

VERSION 0.1.1

13 Apr 09:28
Compare
Choose a tag to compare
  1. 支持 rpc 长连接
  2. 支持 push counter
  3. 修复端口检测,非127.0.0.1上检测不到的 bug
  4. 修复 http push 下来的数据,没有 debug 的问题

VERSION 0.1.0

25 Mar 03:14
Compare
Choose a tag to compare

win-collector 0.1.0
压缩包内包含一个 nssm 便于注册服务