怎样在Windows系统中安装SNMP来监控服务器
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了怎样在Windows系统中安装SNMP来监控服务器相关的知识,希望对你有一定的参考价值。
参考技术A 控制面板->程序->打开或关闭windows功能,里面可以找到snmp的,勾上,确定安装就行了。 参考技术B 1、插入Windows安装光盘或I386文件,在添加/删除组件中,管理和监视工具,勾选SNMP协议,并安装。2、安装成功后,打开服务,找到SNMP Service,并双击。在安全选项卡中,点击添加,输入一个密钥。3、然后选择“接受来自这些主机的SNMP数据包”,并点击添加,输入MRTG服务器的安装网址或IP地址。zabbix-3.2.6之snmp方式监控windows
一、在windows中添加snmp
在服务中添加public和接受服务器的IP地址。
二、在zabbix-server服务器中安装net-snmp软件
#安装软件
[root@zabbix-server ~]# yum install net-snmp* -y [root@zabbix-server ~]# rpm -qa net-snmp* net-snmp-gui-5.7.2-24.el7_3.2.x86_64 net-snmp-devel-5.7.2-24.el7_3.2.x86_64 net-snmp-sysvinit-5.7.2-24.el7_3.2.x86_64 net-snmp-utils-5.7.2-24.el7_3.2.x86_64 net-snmp-libs-5.7.2-24.el7_3.2.x86_64 net-snmp-agent-libs-5.7.2-24.el7_3.2.x86_64 net-snmp-5.7.2-24.el7_3.2.x86_64 net-snmp-python-5.7.2-24.el7_3.2.x86_64 net-snmp-perl-5.7.2-24.el7_3.2.x86_64
#启动软件
[root@zabbix-server ~]# service snmpd start Starting snmpd (via systemctl): [ 确定 ] [root@zabbix-server ~]# systemctl enable snmpd.service Created symlink from /etc/systemd/system/multi-user.target.wants/snmpd.service to /usr/lib/systemd/system/snmpd.service.
1、修改配置文件
[root@zabbix-server tools]# vi /etc/snmp/snmpd.conf
# Third, create a view for us to let the group have rights to:
# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
view systemview included .1 #增加这行
proc mountd #找到这些配置,把注释去掉,下面几行也是一样的
proc ntalkd 4
proc sendmail 10 1
disk / 10000
load 12 14 14
#重启服务
[root@zabbix-server snmp]# service snmpd start Starting snmpd (via systemctl): [ OK ]
2、测试客户端,看是否能连通
#有数据返回,就说明配置成功。 [root@zabbix-server snmp]# snmpwalk -v 1 -c public 192.168.30.141 IPV6-MIB::ipv6AddrPfxLength.13.\'.............?W.\'.114 = INTEGER: 64 bits IPV6-MIB::ipv6AddrPfxLength.15.\'.........0.7..\\.\'.213 = INTEGER: 64 bits IPV6-MIB::ipv6AddrType.1.\'................\'.1 = INTEGER: stateless(1) IPV6-MIB::ipv6AddrType.11.\'.........1...Ue.\'.158 = INTEGER: stateless(1) IPV6-MIB::ipv6AddrType.12.\'...........^....\'.141 = INTEGER: stateless(1) IPV6-MIB::ipv6AddrType.13.\'. ....8.<....?W.\'.114 = INTEGER: stateless(1) IPV6-MIB::ipv6AddrType.13.\'.............?W.\'.114 = INTEGER: stateless(1) IPV6-MIB::ipv6AddrType.15.\'.........0.7..\\.\'.213 = INTEGER: stateless(1) IPV6-MIB::ipv6AddrAnycastFlag.1.\'................\'.1 = INTEGER: false(2) IPV6-MIB::ipv6AddrAnycastFlag.11.\'.........1...Ue.\'.158 = INTEGER: false(2) IPV6-MIB::ipv6AddrAnycastFlag.12.\'...........^....\'.141 = INTEGER: false(2) IPV6-MIB::ipv6AddrAnycastFlag.13.\'. ....8.<....?W.\'.114 = INTEGER: false(2) IPV6-MIB::ipv6AddrAnycastFlag.13.\'.............?W.\'.114 = INTEGER: false(2) IPV6-MIB::ipv6AddrAnycastFlag.15.\'.........0.7..\\.\'.213 = INTEGER: false(2) IPV6-MIB::ipv6AddrStatus.1.\'................\'.1 = INTEGER: preferred(1) IPV6-MIB::ipv6AddrStatus.11.\'.........1...Ue.\'.158 = INTEGER: preferred(1) IPV6-MIB::ipv6AddrStatus.12.\'...........^....\'.141 = INTEGER: inaccessible(4) IPV6-MIB::ipv6AddrStatus.13.\'. ....8.<....?W.\'.114 = INTEGER: preferred(1) IPV6-MIB::ipv6AddrStatus.13.\'.............?W.\'.114 = INTEGER: preferred(1) IPV6-MIB::ipv6AddrStatus.15.\'.........0.7..\\.\'.213 = INTEGER: inaccessible(4) IPV6-MIB::ipv6RouteNumber.0 = Gauge32: 10 IPV6-MIB::ipv6DiscardedRoutes.0 = Counter32: 0
3、在zabbix-server创建主机
添加模板,记得先点添加,再点更新
等待获取数据
查看监控图
以上是关于怎样在Windows系统中安装SNMP来监控服务器的主要内容,如果未能解决你的问题,请参考以下文章