232312 发表于 2014-7-15 14:04:32

zabbix2.2安装配置(2)

                      1、被监控端zabbix_agent.conf设置。

1
2
3
4
5
Server=ServerIP
ServerActive=ServerIP:10051
Hostname=hostname #要与监控服务器一致
Include=/etc/zabbix/zabbix_agentd.d/
UnsafeUserParameters=1




2、简单邮件告警服务器搭建,zabbix邮件告警设置。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# yum -y install bind
# yum -y install postfix
# vim /etc/named.conf
listen-on port 53 { 127.0.0.1;172.16.23.21; };
allow-query   { localhost;172.16.0.0/16; };
forwarders      { 114.114.114.114; };
zone "zabbix-tb.net" IN {
      type master;
      file "/var/named/zabbix-tb.net";
};
# vim /var/named/zabbix-tb.net
$TTL    86400
@       IN      SOA   zabbix-tb.net. root.zabbix-tb.net. ( 2014071011 8H 15M 1W 1D );
@       IN      NS      mail.zabbix-tb.net.;
mail.zabbix-tb.net.   IN      A       172.16.23.21;
@       IN      MX10zabbix-tb.net.;
# vim /etc/postfix/main.cf
mydestination = $myhostname, localhost.$mydomain, localhost, zabbix-tb.net
mynetworks = 127.0.0.0/8, 172.16.0.0/16
mynetworks_style = subnet
inet_interfaces = all
myorigin = zabbix-tb.net
myhostname = mail.zabbix-tb.net





                   

页: [1]
查看完整版本: zabbix2.2安装配置(2)