yum安装snmp

1.安装 snmp服务

[[email protected]] yum install -y net-snmp net-snmp-utils

2.配置snmp服务

第一步:
(yum安装snmpd的配置文件为/etc/snmp/snmpd.conf ,一份非常详细的文档,先备份一份snmpd.conf)

[[email protected]] mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak
3.运行snmp服务

[[email protected]] service snmpd start
Starting snmpd:                                            [  OK  ]

4.设置成开机自动运行snmpd服务

[[email protected]] chkconfig snmpd on
[[email protected]] chkconfig –list|grep snmpd
snmpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off

SNMP报错

创建SNMP – Interface Statistics报错,如下:

Created graph: db-m2-slave-2 - Traffic - |query_ifName|

ERROR: no Data Source associated. Check Template

[[email protected] html]# snmpwalk -c public -v 2c 10.254.3.73 ifHCInOctets

IF-MIB::ifHCInOctets = No more variables left in this MIB View (It is past the end of the MIB tree)

[[email protected] html]# snmpwalk -c public -v 2c 10.254.3.73 if

IF-MIB::ifTable = No Such Object available on this agent at this OID

[[email protected] html]# snmpwalk -c public -v 2c 10.254.3.73 if

IF-MIB::ifTable = No more variables left in this MIB View (It is past the end of the MIB tree)

解决方法

在snmpd.conf配置文件里面,查找以下字段:

## incl/excl subtree mask

#view all included .1 80

将该行前面的"#"去掉.

之后重启snmpd服务解决。

yum安装snmp

时间: 2024-07-31 12:01:05

yum安装snmp的相关文章

Centos yum安装snmp

1.安装 snmp服务 [[email protected]] yum install -y net-snmp net-snmp-utils 2.配置snmp服务 第一步:(yum安装snmpd的配置文件为/etc/snmp/snmpd.conf ,一份非常详细的文档,先备份一份snmpd.conf) [[email protected]] mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak3.运行snmp服务 [[email protected]]

CentOS 7使用yum安装SNMP教程

一.安装SMNP yum install -y net-snmp net-snmp-utils 可以理解为net-snmp是服务端,net-snmp-utils是客户端工具集:如果机器上只需要搭建服务那可以只安装net-snmp. 由于依赖关系,其实最终会安装net-snmp net-snmp-utils net-snmp-agent net-snmp-libs perl-Data-Dumper等几个包. 二.启动SNMP service snmpd start 三.使用SNMP snmpwal

YUM安装调试以及命令详解

背景,需要安装cacti,google了很多安装资料,需要先yum安装一些准备lib包,比如snmp以及openssl等等. [[email protected] ~]# yum install net-snmp-devel Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process No p

linux安装SNMP操作步骤

1.放入对应版本的光盘 光盘会自动加载,如果有桌面,会在桌面上看到这样的图标 如果没有,则使用命令挂载 mkdir /media/rhel mount /dev/cdrom /media/rhel 或者使用命令行查看,命令如下: [[email protected] /]# df -h 如果看到这样的结果,则表明光盘镜像已挂载 2.使用rpm查询命令,确认SNMP是否安装 命令:[[email protected] ~]# rpm -ql snmp package snmp is not ins

Linux安装snmp

1.yum安装 yum -y install net-snmp* 2.修改配置文件/etc/snmp/snmpd.conf com2sec notConfigUser default public 默认团体名为public,如果需要修改,配置成想要的 view systemview included .1 添加配置 access notConfigGroup "" any noauth exact all none none 修改配置 view all included .1 80 取

centos7.x之yum安装zabbix

1.安装LAMP #关闭防火墙方便测试 yum install epel-release -y systemctl stop firewalld.service systemctl disable firewalld.service setenforce 0 #安装httpd yum install httpd systemctl start httpd.service  systemctl enable httpd.service #安装数据库5.6 wget http://dev.mysql

centos yum安装ftp 及解决vsftp错误500 OOPS: cannot change directory:/home/**

centos yum安装ftp 及解决vsftp错误500 OOPS: cannot changedirectory:/home/**   1.查看服务器有没有安装ftp包 rpm -qa |grep vsftp 2.yum  安装 yum -y install vsftpd 3.启动vsftp的服务 service vsftpd start 4.关闭防火墙 service iptables stop 5.测试匿名访问 修改配置文件 vsftpd.conf [[email protected]

yum安装telnet服务

1.查看有无安装telnet [[email protected] ~]# rpm -qa |grep telnet 2.查看yum 源 [[email protected] ~]# yum list |grep telnet telnet.x86_64                              1:0.17-48.el6              @base telnet-server.x86_64                       1:0.17-48.el6    

使用CentOS的DVD制作公司内部YUM安装源

本文链接:http://blog.csdn.net/kongxx/article/details/43821421 这里假定使用有两台机器来模拟,一台机器做YUM安装源,另外一台机器作为测试机. 1. 首先我们使用http的源来作为YUM的安装源,所以我们需要首先确保机器已经安装了apache,如果没有安装的话可以使用 "sudo yum install httpd" 来安装.安装完可以使用 "sudo service httpd start" 来启动服务. 2.