zabbix windows客戶端安裝設置及服務器郵件通知設置


http://www.zabbix.com/downloads/2.4.4/zabbix_agents_2.4.4.win.ziplinux


一、修改文件 web

D:\zabbix\zabbix_agents_2.4.4.win\conf\zabbix_agentd.win.confbash

LogFile=c:\zabbix_agentd.logide

Server=10.173.230.158orm

ServerActive=10.173.230.158ip

Hostname=platform-web1it


二、安裝agentevent

>D:\zabbix\zabbix_agents_2.4.4.win\bin\win64\zabbix_agentd.exe -c D:\zabbix\zform

abbix_agents_2.4.4.win\conf\zabbix_agentd.win.conf -iclass

zabbix_agentd.exe [12884]: service [Zabbix Agent] installed successfully

zabbix_agentd.exe [12884]: event source [Zabbix Agent] installed successfully


三、啓動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

相關文章
相關標籤/搜索