NO.B.0008-simple check of zabbix.server

1. Simple check:
1. Simple check: Use ICMP or TCP protocol to check the survival of a service or device.
2. Close the zabbix-agent.service simulation test,

Insert picture description here

1. SMTP check:
install postfix to check the SMTP service.

[root@localhost ~]# vim /etc/postfix/main.cf                //邮件传输代理软件
inet_interfaces = 192.168.1.60
mydestination = $myhostname, localhost.$mydomain, localhost    // localhost开放

[root@localhost ~]# systemctl restart postfix.service 
[root@localhost ~]# ss -tunlp
users:(("sshd",pid=22755,fd=3))
tcp    LISTEN     0      100           192.168.1.60:25      *:*    

[root@localhost ~]# telnet 192.168.1.60 25    //简单检查我们的25端口开启
Trying 192.168.1.60...
Connected to 192.168.1.60.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix
ctrl+]
telnet>quit

Insert picture description here

The value of SMTP is 1
Insert picture description here

2. ICMP inspection:

Install the fping tool:

[root@localhost ~]# yum -y install fping
 [root@localhost ~]# ping 192.168.1.59
PING 192.168.1.59 (192.168.1.59) 56(84) bytes of data.
64 bytes from 192.168.1.59: icmp_seq=1 ttl=64 time=2.53 ms

Insert picture description hereInsert picture description here

ICMP shows the ping value

Insert picture description here

Guess you like

Origin blog.51cto.com/15005403/2552397