Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4140603
  • 博文数量: 447
  • 博客积分: 1241
  • 博客等级: 中尉
  • 技术积分: 5786
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-27 06:48
个人简介

读好书,交益友

文章分类

全部博文(447)

文章存档

2023年(6)

2022年(29)

2021年(49)

2020年(16)

2019年(15)

2018年(23)

2017年(67)

2016年(42)

2015年(51)

2014年(57)

2013年(52)

2012年(35)

2011年(5)

分类: 系统运维

2021-02-18 20:06:41

使用如下命令配置
./configure --with-openssl=internal --with-default-snmp-version="3" --with-sys-contact="mfc42d@sohu.com" --with-sys-location="beijingNS" --with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp --without-perl-modules  --disable-embedded-perl
如果不用perl必须加上--without-perl-modules  --disable-embedded-perl两个选项,否则make会出错
然后make 
make install

也可以安装perl
sudo apt install libperl-devel
配置文件路径

Config search path: /etc/snmp:/usr/share/snmp:/usr/lib/x86_64-linux-gnu/snmp:/home/hongrui/.snmp
Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for this agent.
在用户目录下运行 snmpconf -g basic_setup,会生成snmpd.conf 文件,将文件copy到/etc/snmp目录下。
sudo cp snmpd.conf /etc/snmp/


阅读(846) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~