HM-SPMS/platform/common/sysconfig/snmp_agent_cfg.xml

51 lines
2.1 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!-- SNMP网管代理服务配置 -->
<!--
本文件可位于,与代理服务程序 net_snmp_agent 相对路径:
1、同目录。
2、../common/sysconfig/
-->
<root>
<!--
port监听端口号SNMP监控端通过此端口访问本服务。
-->
<general port="4700"/>
<!--
本服务会给其他团队使用,采用单文件发布,为了不引入依赖,使用独立的日志系统。
file: 日志文件,与程序的相对路径。如果失败,则使用标准输出 stdout。
日志过滤级别有效值0-15大于15按15算小于0按0算。
值越小输出的信息越少反之越多。0则不输出该类型日志。
-->
<log file="/../../log/BASE/net_snmp_agent.log"
error_filter="15" warning_filter="4" event_filter="0"
info_filter="0" debug_filter="0" user_filter="5"/>
<!--
community_name团体名V1、V2协议使用的用户验证方式。
-->
<snmp_v1_v2 community_name="public"/>
<!--
本服务V3协议内置了两个用户guest没有密码、admin。
当前未作复杂的权限设置admin用户权限并无更多为以后扩展准备。
admin_auth_passwdadmin用户的认证密码算法SHA。
admin_priv_passwdadmin用户的加密密码算法DES。
按SNMP规范要求密码长度应大于等于8个字符本程序并不限制使用短密码只要客户端支持即可。
但有些客户端比如snmpwalk命令是强制要求密码长度的小于8字符则认为非法不连接。
-->
<snmp_v3 admin_auth_passwd="kbdct@0755" admin_priv_passwd="kbdct@0755"/>
<!--
进程信息白名单,为空时提供所有进程的信息,否则只提供进程名在白名单中的进程的信息。
Linux下进程名长度上限15个字符因此配置的进程名若长于15个字符也只对比前15个字符。
-->
<proc_white_list>
<!-- name长度大于0为一行有效记录 -->
<row name=""/>
</proc_white_list>
</root>