几种常见数据库的SNMP代理配置.docVIP

  • 6
  • 0
  • 约8.38千字
  • 约 9页
  • 2017-05-27 发布于河南
  • 举报
几种常见数据库的SNMP代理配置

1. SQL Server数据库监控SNMP代理配置 SQL Server采用扩展代理的方式来实现SNMP代理功能,需要对注册表作相应修改。使得SNMP服务启动时可以自动加载扩展代理。 SQL Server 2000以上的版本,安装时默认都自动注册扩展代理,无须手工配置。扩展代理DLL为sqlsnmp.dll。 目前发现只有V1才能完全支持SQL Server的所有SNMP参数。其中的部分参数不支持Get Bulk导致。 对于SQL Server 2000一下的版本,手工添加扩展代理方法如下,注意区分大小写的匹配: (1) 添加扩展代理注册信息 找到HKEY_LOCAL_MACHINE/ SYSTEM/ CurrentControlSet/ Services/ SNMP/ Parameter/ ExtensionAgents 新增如下字符串值:格式为:名称、类型、数值 1 : REG_SZ : SOFTWARE/Microsoft/MSSQLServer/SNMP/CurrentVersion (2) 配置扩展代理DLL对于的路径 转到HKEY_LOCAL_MACHINE/SOFTWARE 创建主键:Microsoft/MSSQLServer/SNMP/CurrentVersion 新增字符串值:Pathname:REG_EXPAND_SZ:d:/Program Files/Microsoft SQL Server/MSSQL/BINN/sqlsnmp.dll 2. Sybase ASE数据库监控SNMP代理配置 在“第三方程序/sybase”目录下带了一个Sybase ASE12.5 的SNMP子代理,它是Net-snmp的AgentX扩展代理。 首先需要安装和配置Net-snmp代理,并且配置Net-snmp支持agentx,简单来说就是snmpd.conf文件中有一行是“master agentx”,具体参考第3章。 2.1. Linux 将“第三方程序/sybase”目录下的SNMP-1_0.tar通过FTP方式拷贝到目标Linux机器上,放在下面的目录中/opt/Sybase-12.5下。 注意:Sybase安装时,标准的做法是自动创建一个用户sybase,因此Sybase的安装目录的权限属于sybase用户,建议使用sybase用户登录后来安装这个包。 运行下面的命令解压: tar xvf SNMP-1_0.tar 进入/opt/Sybase-12.5/SNMP-1_0目录,用vi打开文件snmpagent.cfg,修改其中的配置: # # Sybase SNMP Sub-Agent example configuration file # This file defines the behavior of the Sybase sub-agent. # # Global values affecting the behavior of the sub-agent # # logFile=logfile # Full path to the agents logfile # # masterAgentLocation=host:port # The host and port number that the master agent is listening on for # agentX connections. When using the net-snmp agent, this is the # -x value. # # rpcPort=port # The port to listen on for remote procedure calls. Used by ASE or # other servers to call sp_errornotify. You would use this same value whe n you # create an interfaces file entry for the Sybase Agent so that an ASE can send it # an RPC. # # # # Server sections # Some configuration values are specific to the server that is being monitored. # A section is defined with the server name in brackets, followed by the configu ration # values for that server. # # login=loginname # The

文档评论(0)

1亿VIP精品文档

相关文档