![简单检查一下 tcp,端口停止了做任何事情](https://linux22.com/image/711420/%E7%AE%80%E5%8D%95%E6%A3%80%E6%9F%A5%E4%B8%80%E4%B8%8B%20tcp%EF%BC%8C%E7%AB%AF%E5%8F%A3%E5%81%9C%E6%AD%A2%E4%BA%86%E5%81%9A%E4%BB%BB%E4%BD%95%E4%BA%8B%E6%83%85.png)
我有一个受监控的主机,其中有一个活动项目,用于检查端口 2401 上的 cvs pserver。每分钟“上次检查”日期都会更新,“上次值”保持为“关闭 (0)”,但实际上服务器不会尝试与远程端口建立 tcp 连接。我可以通过运行来判断tcpdump "host $pserverhost"
。
问题是它过去是可以工作的。我不知道发生了什么。icmpping
简单检查在该主机上仍然有效。
操作系统:RHEL 6.8,epel 的 zabbix-server-mysql 1.8.22-1.el6。
以下是我全新安装后配置检查的方法:
Configuration / Templates / Template_Standalone / items / Create item
cvs (pserver)
simple check
tcp,2401
numeric unsigned
decimal
interval: 60
store val: as is
Configuration / Templates / Template_Standalone: triggers / Create trigger
CVS pserver on {HOSTNAME}
{Template_Standalone:tcp,2401.last(0)}#1
severity: average
Configuration / Hosts / Create Host
linked templates: Template_Standalone
ip: the ip
dns: the dns name
Configuration / Hosts / Items
disable all except CVS and ping
Configuration / Actions / Create Action
test action
event source: triggers
Action operations / New
Send message
to: single user: Admin
Administration / Media types / Create Media Type
Description: Email from zabbix
type: email
server: webmail.acme.com
helo: acme.com
email: [email protected]
Administration / Users / Admin / Media / Add
type: Email from zabbix
Send to: [email protected]