当前位置: 首页 > news >正文

CentOS7.9下snmp v3 inform搭建监控端

1.基础环境配置

为了防止防火墙及selinux等的影响,需关闭防火墙及selinux等,具体参考:

Linux常规基础配置_linux基础配置-CSDN博客

2.安装snmp

yum源配置,具体参考:

Linux常规基础配置_linux基础配置-CSDN博客

snmp安装命令:

yum install -y net-snmp net-snmp-utils

[root@logstash ~]# yum install -y net-snmp net-snmp-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
CentOS7                                                                                                                               | 3.6 kB  00:00:00     
nginx-stable                                                                                                                          | 2.9 kB  00:00:00     
Package matching 1:net-snmp-5.7.2-49.el7.x86_64 already installed. Checking for update.
Package matching 1:net-snmp-utils-5.7.2-49.el7.x86_64 already installed. Checking for update.
Nothing to do
[root@logstash ~]# 

3.监控端配置snmp v3 inform

1.编辑/etc/snmp/snmptrapd.conf文件,添加如下信息并保存

createUser watcher SHA "abcd1234" AES "abcd1234"
authuser log,execute,net watcher
[root@logstash snmp]# cat snmptrapd.conf 
# Example configuration file for snmptrapd
#
# No traps are handled by default, you must edit this file!
#
# authCommunity   log,execute,net public
# traphandle SNMPv2-MIB::coldStart    /usr/bin/bin/my_great_script coldcreateUser watcher SHA &#

http://www.mrgr.cn/news/24104.html

相关文章:

  • Microsoft Activation Scripts
  • 酒店定制门牌的功能特点
  • SpringBoot开发——整合Redis
  • Redis 多线程模型详解
  • Java 21的Pseudorandom的笔记
  • 校园二手数码交易系统小程序的设计
  • 如何在Flask中实现用户认证
  • Python | Leetcode Python题解之第398题随机数索引
  • css的选择器有哪些?权重由大到小是怎么排序的?
  • AI学习指南深度学习篇-自适应矩估计(Adam)简介
  • vue的自定义指令
  • Ubuntu 24.04 配置 nginx + php-fpm
  • C++ 在项目中使用Git
  • 【玩转贪心算法专题】406. 根据身高重建队列【中等】
  • 详细分析Redis常用命令(图文)
  • vue自定义指令
  • C语言 ——— 学习并使用 #if defined #ifdef #ifndef 条件编译指令
  • Ionic 头部和底部
  • 第 8 章图像内容分类
  • Apache License 2.0 和 MIT License 区别