一、监控本机端口(net.tcp.listen[port]
)
1.创建模板

1.1创建监控项
端口用宏变量表示,模板宏 不赋值,主机关联模板后再继承模板宏,并更改宏变量值。


1.2创建触发器

2 主机链接模板

监控什么端口只需要修改宏的 可用值 即可,比如80端口。

二、监控 TCP 连接到指定端口(net.tcp.port[<ip>,port]
)
1.创建模板

1.1创建监控项
端口和IP都用宏变量表示,模板宏 不赋值,主机关联模板后再继承模板宏,并更改宏变量值。


1.2创建触发器

2.主机链接模板


最后查看数据

网友评论