Linux???rhel7.5????????????zabbix4.4?????????http???http????????????nginx?????????????????????pernoca??????????????? mysqld ????????????https://blog.csdn.net/qq_35887546/article/details/104923467
rhel7.5???zabbix4.4??????qq??????????????????????????????
- zabbix??????qq????????????????????????
-
- 1??????????????????????????????
- 2.??????mailx??????
- 3?????????qq???????????????
- 4???????????????????????????
- 4.?????????
zabbix??????qq????????????????????????
1??????????????????????????????
???server4???
[[email??protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
[[email??protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=static
DEVICE=eth0
ONBOOT=yes
IPADDR=172.25.63.4
PREFIX=24
GATEWAY=172.25.63.250 #??????????????????
[[email??protected] ~]# vim /etc/resolv.conf
[[email??protected] ~]# cat /etc/resolv.conf
nameserver 114.114.114.114 #??????DNS????????????
[[email??protected] ~]# systemctl restart network
?????????????????????????????????

??????????????????ok???
2.??????mailx??????
???server4?????????mailx?????????????????????????????????
[[email??protected] ~]# yum install mailx -y
[[email??protected] ~]# netstat -antlupe | grep :25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 25901 958/master
tcp6 0 0 ::1:25 :::* LISTEN 0 25902 958/master
????????????mail???????????????
[[email??protected] ~]# mail root #???root??????????????????
Subject: test #????????????????????????
111111 #????????????????????????
2222
3333333
EOT #??????????????????,???"Ctrl + d"??????
[[email??protected] ~]# mailq #??????????????????
Mail queue is empty
[[email??protected] ~]# mail #??????????????????????????????
Heirloom Mail version 12.5 7/5/10. Type ? for help.
"/var/spool/mail/root": 1 message 1 new
>N 1 root Wed Mar 18 19:53 20/604 "test" #????????????????????????,????????????1
& 1 #???????????????:1
Message 1:
From [email protected] Wed Mar 18 19:53:25 2020
Return-Path: <[email protected]>
X-Original-To: root
Delivered-To: [email protected]
Date: Wed, 18 Mar 2020 19:53:25 +0800
To: [email protected]
Subject: test #????????????????????????
User-Agent: Heirloom mailx 12.5 7/5/10
Content-Type: text/plain; charset=us-ascii
From: [email protected] (root)
Status: R
111111
2222 #????????????????????????
3333333
3?????????qq???????????????
??????qq???????????????????????????????????????????????????????????????
???????????????????????????????????????app??????????????????
4???????????????????????????
???1???????????????>?????????????????????????????????Email????????????????????????
???2???????????????>????????????????????????>email???
???3????????????????????????????????????
???????????????
???3???????????????>????????????>???????????????>Report problems to Zabbix administrators????????????????????????????????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????Report problems to Zabbix administrators???
4.?????????
???server3?????????zabbix-agent????????????????????????
?????????????????????????????????????????????????????????server3????????????
??????????????????qq?????????????????????????????????
????????????zabbix???????????????
??????Linux???rhel7.5??????zabbix4.4??????qq????????????????????????????????????