1.通过 yum 安装
yum install net-snmp net-snmp-utils
2.创建配置文件,并且添加用户
snmpconf
输出:
The following installed configuration files were found:
1: /etc/snmp/snmpd.conf
2: /usr/share/snmp/snmpd.conf
Would you like me to read them in? Their content will be merged with the
output files created by this session.
Valid answer examples: "all", "none","3","1,2,5"
Read in which (default = all): none
I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)
1: snmpd.conf
2: snmp.conf
3: snmptrapd.conf
Other options: quit
Select File: 1
The configuration information which can be put into snmpd.conf is divided
into sections. Select a configuration section for snmpd.conf
that you wish to create:
1: Access Control Setup
2: Extending the Agent
3: Agent Operating Mode
4: System Information Setup
5: Trap Destinations
6: Monitor Various Aspects of the Running Host
Other options: finished
Select section: 1
Section: Access Control Setup
Description:
This section defines who is allowed to talk to your running
snmp agent.
Select from:
1: a SNMPv3 read-write user
2: a SNMPv3 read-only user
3: a SNMPv1/SNMPv2c read-only access community name
4: a SNMPv1/SNMPv2c read-write access community name
Other options: finished, list
Select section:
最后一项根据你自己的需要选择
3.创建用户(SNMPv3)
在 /var/net-snmp/snmpd.conf(如果没有,先启动snmp服务
/etc/init.d/snmpd start
)
中添加如下行,用户名密码根据你自己情况修改
createUser user1 MD5 user1password
4.重启动服务
/etc/init.d/snmpd stop
/etc/init.d/snmpd start
5.打开防火墙端口
iptables -A INPUT -i eth0 -p udp -s [允许访问的ip地址] --dport 161 -j ACCEPT
5.监控
http://blog.jiankongbao.com/?p=160
分享到:
相关推荐
服务器安装SNMP服务操作文档,完全根据自己测试实验写的错作文档,希望能够帮助到一些初学者 很高兴同大家交流分享知识。
centos7下针对内网离线安装snmp手册,snmp版本为V3,python脚本通过snmp监控服务器各项参数,配合定时任务,能定期监控服务器各项参数。
centos6系统snmp监控安装配置与使用示例.docx
本文介绍了在centos, redhat 和aix的服务中去配置snmp服务,监控服务器的硬盘、CPU和内存使用情况已近硬件温度等。
linux系统下配置snmp.docx
一、Centos7离线安装 snmp 命令: rpm -ivh 包名 The Dude\centos7\net-snmp-libs-5.7.2-49.el7_9.2.x86_64.rpm The Dude\centos7\net-snmp-agent-libs-5.7.2-49.el7_9.2.x86_64.rpm The Dude\centos7\...
更改zabbix-server配置文件 `[root@localhost ~]# egrep -v "^#|^$" /data/zabbix/etc/zabbix_server.conf` `LogFile=/tmp/zabbix_server.log` `DBHost=localhost` `DBName=zabbix` `DBUser=zabbix` `...
rehdat el7和centos el7上的net-snmp版本为5.7,不支持snmpv3的AES-192和AES-256,net-snmp 5.8版本才支持,所以编译成rpm包。 先安装一些依赖: yum install -y perl-devel perl-ExtUtils-Embed elfutils-devel ...
zabbix server可以通过SNMP,zabbix agent,ping,端口监视等方法提供对远程服务器/网络状态的监视,数据收集等功能!
Cacti是用PHP语言开发的一套完全面向RRDTool的B/S系统,它用SNMP服务获取数据,然后用RRDTool储存和更新数据并生成详细图表呈现给用户。Cacti通过Mysql存储了所有RRDTool创建图像需要用到的信息以及管理信息,如:...
2、学习目标:配置路由器接口,配置单区域OSPF网络,路由器上启用SNMP协议,网管服务器配置 3、应用场景:基于SNMP的Jan16公司网络管理 4、特点:Word文档提供了实验的详细过程,包括每一步骤的操作命令和截图,并给...
SNMP2ZABBIX snmp2zabbix是一个Python脚本,允许您从MIB文件创建Zabbix模板。 下载: wget ...用于创建模板的服务器将需要预先安装一些SNMP配置
5.nagios for cacti的安装,整合cacti 和 naigos 由于涉及到的东西比较多,文档中我尽量保持了所有配置的完整过程,nagios的配置监控部分文档中只是举例说明。当初测试的过程中虽然大概记录了解决配置过程中遇到的...
2、学习目标:配置路由器接口,配置单区域OSPF网络,路由器上启用SNMP协议,路由器配置ssh登录,编写python脚本 3、应用场景:公司网络自动化运维配置 4、特点:Word文档提供了实验的详细过程,包括每一步骤的操作...
基础环境配置,安装必备组件和一些运维组件: 序号 软件名称 说明 使用方法 1 wget wget命令用来从指定的URL下载文件 2 nano nano是一个字符终端的文本编辑器,有点像DOS下的editor程序 3 zip zip命令可以用来解压缩...
保活基于centos7的keepalived的docker文件只支持 vrrp 不支持 lvs 构建没有lvs的keepalived bin文件 ./configure --disable-lvs-syncd --disable-lvs --enable-snmp --enable-sha1make需要使用 --...
安装/配置 CentOS 安装第三方源: epel-release Nux Dextop 安装在线编译环境(yum): 安装PHP: php-devel php-cli php-commmon php-fpm hp-gd php-pecl-memcache php-mysql php-pear php-mbstring php-snmp php-xml...
tsung是用erlang开发的一款简单易用的压力测试工具,目前仅支持linux各版本系统安装,有tar.gz和deb两种安装文件, 目前我们测试用的是CentOS或RedHat两种操作系统,因此选择tar.gz安装文件,总的来说tsung工具有...
基础环境配置,安装必备组件和一些运维组件: 序号 软件名称 说明 使用方法 1 wget wget命令用来从指定的URL下载文件 2 nano nano是一个字符终端的文本编辑器,有点像DOS下的editor程序 3 zip zip命令可以用来解压缩...
安装和配置基本的SNMP 安装libvirt-snmp 为libvirt-snmp创建初始化脚本或systemd服务 启动并测试服务 有关如何为oVirt或libvirt启用SNMP的说明,请参阅我的详细博客文章: 在Zabbix中创建一个新的值映射: 在...