玩转usbserver(五)之usbserver加入zabbix集中监控

一、把usbserver加入到zabbix 监控平台

问:可以监控那些东西

答:主要是端口监控,连接断开了可以及时报警网络断开了也可以报警.

二.、如何配置(你把那两个模版导入,照图配置一下主机资源即可)

  1. 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

  • 4
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值