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

 

一、usbserver加入到zabbix 监控平台

问:可以监控那些东西

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

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

  1. zbx_export_hosts.yaml
  2. 1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    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

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    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

     


posted on   lydstory  阅读(23)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2023-08-09 ScreenTask
2023-08-09 mysql Statement接口
2023-08-09 全局变量在so中的模块问题
2023-08-09 std::map问题
2023-08-09 std::swap 【chatgpt】
2019-08-09 libnl
2019-08-09 lsm和lkm模块

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示