注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

云水禅心

淡若秋菊何妨瘦, 清到梅花不畏寒.

 
 
 

日志

 
 

Adding SNMP to Windows Server 2008 R2-SNMP 的Community字符串  

2013-08-02 13:11:35|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
http://blog.skufel.net/2012/09/how-to-adding-snmp-to-windows-server-2008-r2/


As a part of preparation for monitoring our WIndows Server 2008 R2 using SNMP and Nagios we had to add SNMP Services to few systems which didn’t have it yet. So, based on that fact I thought it might be nice to capture all steps involved in adding SNMP to Windows Server machine. Here you can see steps, screenshots and short description how to achieve that.

Start Server Manager and go to Features and then click Add Feature

After Add Features Wizard will appear on the screen locate SNMP Services section and add this feature to installation list by ticking checkboxes next to appropriate services on the list as shown on screen below. Then click Next to proceed.

Summary screen will show what services will be installed. Click Install to proceed with installation.

Installation progress will appear once server will be adding desired features to system configuration.

Once additional components will be installed, summary windows will show what features were installed and if installation was successful. Click Close to to finalize Add Feature Wizard.

Now in Server Manager in Features section you can see that SNMP Services are listed as installed components.

It’s time to configure SNMP for serving information to monitoring system, which in our case is Nagios. In order to set parameters on SNMP go to Start / Administrative Tools / Services and then locate SNMP Service on the list. Double click on it.

In SNMP Service Properties (Local Computer) window go to Security tab.

This is place where we can define parameters of SNMP Service:

  • Community string – unique keyword which will be presented by monitoring system when accessing information on server via SNMP
  • IP address of monitoring system – to narrow down computers which can poll information remotely from server

When you click Add in Accepted community names section you can enter Community Name and defineCommunity rights. For us READ ONLY is required as we want to poll information from server only.

Available rights for community strings:

  • NONE: Prevents this host from processing any SNMP requests.
  • NOTIFY: Allows this host to send only SNMP traps to the community.
  • READ ONLY: Prevents this host from processing SNMP SET requests. SNMP managed objects have default values specified by the agent. Some applications may request to modify these values with the SNMP SET command.
  • READ WRITE: Allows this host to process SNMP SET requests.
  • READ CREATE: Allows this host to create new entries in the SNMP tables.

NOTE: Make sure that Community Name parameter will NOT be any easy dictionary word. Think of it as a password to protect access to information about system.

Once Community Name is define click Add in Accept SNMP packets from these hosts. That will allow you to add IP address of the server with monitoring system, which is Nagios in our case. It is highly recommended to narrow down list of IP addresses from which SNMP communication can be received by the server for security reasons.

IP address on the screenshot above is example IP address and you should replace it with IP of your monitoring system.

Once all parameters are configured you can see them in SNMP Service Properties (Local Computer) dialog windows and if everything is fine and according to expectations click OK to approve changes and apply those to SNMP Service.

From now on you can poll information using SNMP from certain IP addresses using Community Stringsdefined in SNMP Service configuration.

  评论这张
 
阅读(3411)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018