zoukankan      html  css  js  c++  java
  • windows安装zabbix agent

    材料:

    步骤:

    1. 下载绿色安装的zabbix agent文件,并且把文件解压到C盘下,文件名字可以改成zabbix

    2. C:zabbixconfzabbix_agentd.win.conf 内容根据情况做一下修改,例如zabbix_agentd.win.conf 

    3. 右键点击run as administator打开terminal

    4. #CMD安装
    C:zabbixinzabbix_agentd.exe -i -c C:zabbixconfzabbix_agentd.win.conf

    5. #CMD启动
    C:zabbixinzabbix_agentd.exe -c C:zabbixconfzabbix_agentd.win.conf -s

    6. #查看Windows端口,10050端口就是zabbix agent的监听端口

    CMD 窗口,netstat -ano|findstr "10050"

    7. #windows系统防火墙中开放端口10050,或者防火墙全关了?


    8.#设置重启windows 的zabbix agent

    windows 徽标键➕r , 运行services.msc 往下走,看看zabbix服务是不是automatic,其实已经就是了,可以停止或者重启等操作

    windows tcp链接监控

    #下面是tcp链接相关的一些东西,zabbix那里的配置,例如tcp established的 key可以写作sockstat.tcp.inuse.count
    UserParameter=sockstat.tcp.inuse, netstat -ano | findstr ESTABLISHED
    UserParameter=sockstat.tcp.inuse.count, netstat -ano | find /C "ESTABLISHED"
    UserParameter=sockstat.tcp.orphan, netstat -ano | findstr CLOSE_WAIT
    UserParameter=sockstat.tcp.orphan.count, netstat -ano | find /C "CLOSE_WAIT"
    UserParameter=sockstat.tcp.timewait, netstat -ano | findstr TIME_WAIT
    UserParameter=sockstat.tcp.timewait.count, netstat -ano | find /C "TIME_WAIT"

  • 相关阅读:
    Python 列表字典制作名册管理
    AS3获取SWF文件中AS链接
    AS3多选多模型
    AS3视频播放器
    测试
    Makefile三个有用变量$@,$^,$<
    CentOS 7.2 安装教程
    Ubuntu 查看/修改文件编码
    API 进程、线程函数
    API 菜单函数
  • 原文地址:https://www.cnblogs.com/faberbeta/p/12888676.html
Copyright © 2011-2022 走看看