Hi Dave: 2010/1/21 Alexander King <[email protected]>: > sys-man snmp # /usr/local/sbin/snmpd -f -L > Warning: no access control information configured. > It's unlikely this agent can serve any useful purpose in this state. > Can anybody tell me where maybe I am wrong? This error message tells you exactly what is wrong. There is no access control in the snmpd.conf file that this agent is using. >>>>my fault,the command donot give the configuration file to the snmpd >>>>routine.I am sorry. > sys-man snmp # /usr/local/sbin/snmpd -f -Le -c > /usr/local/share/snmp/mibs/snmpd.conf > Turning on AgentX master support. This file does at least contain some form of access control. Though it's unclear why you are putting the config file into a MIB directory. It would more naturally go into /usr/local/share/snmp or /usr/local/etc/snmp >>>>my fault,I had corrected the obscure operation.that I imitate other's from >>>>the Internet. > NET-SNMP version 5.4.2.1 > Segmentation fault Hmmm.... that shouldn't be happening. And it's not clear exactly where things are falling over. Does this happen immediately when you start the agent, or after a short delay? >>>>yes,everytime,maybe three or five seconds,or shorter.the generated code >>>>files integrated into the master snmpd routine,my code can send trap to >>>>the destination server I configured in the snmpd.conf file,received by >>>>MG-soft several times. Try starting the agent using snmpd -f -Le -c .../snmpd.conf -Dread_config That should at least give some indication of whether the agent is failing while processing the config file (and if so, where). >>>>the output file is sent by attachment.,But I sm now sure the snmd.conf is >>>>OK, all the problem was triggered by my private routine(uit subagent) >>>>I attached my uit.c file,would you mind take a few minutes to check it for >>>>me ?it so tough to me.(memory leak or something?) Perhaps try with a minimal snmpd.conf file e.g. containing *just* a "rocommunity public" line (and nothing else). If that works, then you can build up to the full configuration, and see exactly what introduces the crash. If that minimal config also fails, then the problem lies elsewhere.... >>>>yes,unlucky,,,I really think it my subagent code's fault(uit.c,uit.h). >>>>in my snmptrapd.conf: authcommunity execute,log,net public traphandle .1.3.6.1.4.1.2021.251.2 page_me down traphandle .1.3.6.1.4.1.30901.2090.7000 /home/net-snmp/traphandle.pl traphandle default log_it >>>>in my snmpd.conf trapsink localhost trap2sink localhost informsink loaclhost trapsink 172.19.50.12 trap2sink 172.19.50.12 informsink 172.19.50.12 >>>>Above are some entries configuration related trap, I saw 'trap2sink >>>>172.19.50.12:162 public ',I donot know which one is right. I commented the line 'mibs +ALL' Dave ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
uit.rar
Description: Binary data
snmpd -f -Le -c ...snmpd.conf -Dread_config.txt
Description: Binary data------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev_______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
