http://www.zabbix.com/downloads/2.4.4/zabbix_agents_2.4.4.win.zip
1、修改文件
D:\zabbix\zabbix_agents_2.4.4.win\conf\zabbix_agentd.win.conf
LogFile=c:\zabbix_agentd.log
Server=10.173.230.158
ServerActive=10.173.230.158
Hostname=platform-web1
2、安装agent
>D:\zabbix\zabbix_agents_2.4.4.win\bin\win64\zabbix_agentd.exe -c D:\zabbix\z
abbix_agents_2.4.4.win\conf\zabbix_agentd.win.conf -i
zabbix_agentd.exe [12884]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [12884]: event source [Zabbix Agent] installed successfully
3、启动agent客户端 -s 停止:-x
>D:\zabbix\zabbix_agents_2.4.4.win\bin\win64\zabbix_agentd.exe -c D:\zabbix\z
abbix_agents_2.4.4.win\conf\zabbix_agentd.win.conf -s
zabbix_agentd.exe [12684]: service [Zabbix Agent] started successfully
---------------------------------------------------------------------------
邮件告警通知:
http://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5.orig.tar.gz
http://www.linuxfromscratch.org/patches/blfs/7.7/heirloom-mailx-12.5-fixes-1.patch
[root@srv2 heirloom-mailx-12.5]# patch -Np1 -i ../heirloom-mailx-12.5-fixes-1.patch
[root@srv2 heirloom-mailx-12.5]# make PREFIX=/usr UCBINSTALL=/usr/bin/install install
# whereis mailx
mailx: /usr/bin/mailx /usr/share/man/man1/mailx.1
# mailx -V
12.5 6/20/10
[root@srv2 ~]# cat >> /etc/nail.rc << EOF
set from=xyxsender@163.com
set smtp=smtp.163.com
set smtp-auth-user=xyxsender@163.com
set smtp-auth-password=t16adf@$*19
set smtp-auth=login
EOF
/usr/lib/zabbix/alertscripts/sendmail.sh
#!/bin/bash
echo "$3" | /usr/bin/mailx -s "$2" $1
zabbix windows客户端安装设置及服务器邮件通知设置
原文地址:http://relearn.blog.51cto.com/2605709/1671254