|
一、所需文件位置 Windows客户端程序安装文件和配置文件分别在zabbix-1.6.6.tar.gz压缩包(使用winrar打开)的bin\win32和misc\conf下。 二、安装 1.copy bin\win32\zabbix_agentd.exe misc\conf\zabbix_agentd.conf 到c:\下。 修改zabbix_agentd.conf Server=192.168.1.1 <------zabbix服务器ip地址 Hostname=sale server <------客户端机器名 StartAgents=5 DebugLevel=3 PidFile=c:\zabbix_agentd.pid <------保存PidFile的路径 LogFile=c:\zabbix_agentd.log <------保存LogFile的路径 Timeout=3 2.使用命令安装zabbix_agentd cd c:\ zabbix_agentd.exe -i <------安装 zabbix_agentd.exe -s <------启动服务 三、安装完毕后,在zabbix Web管理页面使用Discovery查找新安装的客户端。 也可以将zabbix_agentd.exe存放在共享文件服务器上,使用脚本方式自动安装,脚本内容如下 @echo off echo copying exe net use y: \\共享服务器地址\zabbix xcopy Y:\zabbix_agentd.exe c:\ net use y: /delete echo creating config file echo Server=192.168.1.1 >> c:\zabbix_agentd.conf echo Hostname=%COMPUTERNAME% >> c:\zabbix_agentd.conf echo StartAgents=5 >> c:\zabbix_agentd.conf echo DebugLevel=3 >> c:\zabbix_agentd.conf echo PidFile=c:\zabbix_agentd.pid >> c:\zabbix_agentd.conf echo LogFile=c:\zabbix_agentd.log >> c:\zabbix_agentd.conf echo Timeout=3 >> c:\zabbix_agentd.conf echo installing service cd c:\ zabbix_agentd.exe -i echo start service? pause zabbix_agentd.exe -s |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70109/viewspace-686551/ ,如需转载,请注明出处,否则将追究法律责任。