码迷,mamicode.com
首页 > Windows程序 > 详细

zabbix windows客户端安装设置及服务器邮件通知设置

时间:2015-07-06 20:13:43      阅读:279      评论:0      收藏:0      [点我收藏+]

标签:zabbix agent、邮件通知


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客户端安装设置及服务器邮件通知设置

标签:zabbix agent、邮件通知

原文地址:http://relearn.blog.51cto.com/2605709/1671254

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!