一、把usbserver加入到zabbix 监控平台
问:可以监控那些东西
答:主要是端口监控,连接断开了可以及时报警、网络断开了也可以报警.
二.、如何配置(你把那两个模版导入,照图配置一下主机资源即可)
- zbx_export_hosts.yaml
zabbix_export:
version: '6.2'
date: '2024-05-30T00:22:55Z'
host_groups:
-
uuid: dc579cd7a1a34222933f24f52a68bcd8
name: 'Linux servers'
hosts:
-
host: 192.168.1.238
name: 192.168.1.238
templates:
-
name: 'Apache by Zabbix agent'
-
name: 'HTTP Service'
-
name: 'Linux by Zabbix agent'
-
name: 'SSH Service'
-
name: 'usb port monitor'
-
name: 'Zabbix agent'
groups:
-
name: 'Linux servers'
interfaces:
-
ip: 192.168.1.238
interface_ref: if1
inventory_mode: DISABLED
2.zbx_export_templates.yaml
zabbix_export:
version: '6.2'
date: '2024-05-30T00:22:36Z'
template_groups:
-
uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
name: Templates/Applications
templates:
-
uuid: b74eb6fe06404ceca3a24e1ea696a902
template: 'usb port monitor'
name: 'usb 端口监控'
groups:
-
name: Templates/Applications
items:
-
uuid: e3436977f465424c9078decac38ebd15
name: 'check tcp port status'
key: 'net.tcp.listen[33000]'
history: 7d
trends: '0'
value_type: TEXT
triggers:
-
uuid: 8f4ccd0ad60a4dd4b120add8c7fca393
expression: 'last(/usb port monitor/net.tcp.listen[33000],#1)=0'
name: 'the usb port is offline'
priority: HIGH