pdu = snmp_pdu_create(SNMP_MSG_SET); oid_len = MAX_OID_LEN;// Parse the OIDif(snmp_parse_oid(oid_str, the_oid, &oid_len) ==0) { snmp_perror(oid_str);return0; }// Build the packet to be sentif(snmp_add_var(pdu, the_oid, oid_len, type, val) !=0) {printf("type: ...
forwarded_for on (将用户的真实IP地址通过X-Forwarded-For中传递下去,主要是为了保证正确显示lucene.com.cn网站中的用户评论的真实IP地址) snmp_port 3401 (设定SNMP端口为3401) acl snmp src 202.99.16.0/24 (只允许这个网段的用户进行SNMP请求) snmp_access allow snmp strip_query_terms off (由于咱们的日志...
如题错误请看图片
Fix Version/s:None Affects Version/s:2.5.0 Component/s:Documentation (D),Frontend (F) Labels: lld Environment: CentOS 6.5 Problems with CONFIGURATION OF DISCOVERY RULES.Errors "Invalid SNMP OID: cannot parse expression." In version 2.4 all items normally detected. ...
示例1: view_oid ▲点赞 7▼ voidview_oid(oid * it,size_t* len,constchar*viewName,char*viewSubtree){inti; oid c_oid[SPRINT_MAX_LEN];size_tc_oid_length = SPRINT_MAX_LEN;intitIndex = VIEW_OID_LEN;if(!snmp_parse_oid(viewSubtree, c_oid, &c_oid_length)) ...