Hi Jeffrey,<br>
<br>
This is the log of the agent when is started in debug mode, and later Openser is started:<br>
<br>
/opt/net-snmp/sbin/snmpd -f -Dagentx -x tcp:localhost:705 2>&1<br>
No log handling enabled - turning on stderr logging<br>
registered debug token agentx, 1<br>
agentx_register_app_config_handler: registering .conf token for "agentxsocket"<br>
agentx_register_app_config_handler: registering .conf token for "agentxperms"<br>
agentx_register_app_config_handler: registering .conf token for "agentxRetries"<br>
agentx_register_app_config_handler: registering .conf token for "agentxTimeout"<br>
Turning on AgentX master support.<br>
agentx/master: initializing...<br>
agentx/master: initializing... DONE<br>
NET-SNMP version 5.4<br>
agentx/master: unexpected callback op 4<br>
agentx/master: handle pdu (req=0x54fb3d2b,trans=0x0,sess=0x0)<br>
agentx/master: open 0018efc0<br>
agentx/master: opened 001ad130 = 5 with flags = a0<br>
agentx/master: send response, stat 0 (req=0x54fb3d2b,trans=0x0,sess=0x0)<br>
agentx_build: packet built okay<br>
<br>
I have tried changing too the keywork agentXsocket to agentXSocket, and with a minimal snmpd config, and still reports error:<br>
<br>
# /opt/net-snmp/bin/snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.27483<br>
OPENSER-REG-MIB::openser = No Such Object available on this agent at this OID<br>
<br>
And the snmpd log:<br>
<br>
agentx/master: send response, stat 0 (req=0x54fb3d2f,trans=0x0,sess=0x0)<br>
agentx_build: packet built okay<br>
agentx/master: handle pdu (req=0x54fb3d30,trans=0x0,sess=0x5)<br>
agentx/master: send response, stat 0 (req=0x54fb3d30,trans=0x0,sess=0x5)<br>
agentx_build: packet built okay<br>
<br>
Thanks!<br>
<br><br><div><span class="gmail_quote">On 3/29/07, <b class="gmail_sendername">Jeffrey Magder</b> <<a href="mailto:jmagder@somanetworks.com">jmagder@somanetworks.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It looks like there is communication going on between the NetSNMP master<br>agent, and OpenSER's SNMPStats sub-agent. Would you be able to provide<br>me some more of the /var/log/snmpd.log snmpd logs? Specifically, I'm
<br>looking for what happens after:<br><br>Turning on AgentX master support.<br>agentx/master: initializing...<br>agentx/master: initializing... DONE<br>NET-SNMP version 5.3.1<br><br>There should be something similar to the following:
<br><br>agentx/master: unexpected callback op 4<br>agentx/master: handle pdu (req=0x1da53a0c,trans=0x0,sess=0x0)<br>agentx/master: open 0x81137c8<br>agentx/master: opened 0x814b558 = 6 with flags = a0<br>agentx/master: send response, stat 0 (req=0x1da53a0c,trans=0x0,sess=0x0)
<br><br>If thats there, I'm wondering if you have set up any special view<br>restrictions for certain parts of the OID Tree given a certain community<br>strings?<br>Perhaps it would be helpful to rule that out with a minimal
snmpd.conf<br>file containing only:<br><br>rocommunity public<br>master agentx<br><br>Finally, I don't think this matters (it doesn't matter on my system),<br>but could you change:<br><br>agentXsocket tcp:localhost:705 ---> agentXSocket tcp:localhost:705
<br><br>The "S" wasn't capitalized. :-)<br><br>Thanks again!<br><br>- Jeffrey Magder<br><br>Sergio Gutierrez wrote:<br>> Hi Jefrey<br>><br>> Thanks for your answer.<br>><br>> I will reply every point:
<br>><br>> # /opt/net-snmp/bin/snmpwalk -v 2c -c community localhost<br>> .1.3.6.1.4.1.27483<br>> OPENSER-REG-MIB::openser = No Such Object available on this agent at<br>> this OID<br>><br>> # ps -ef | grep snmpd
<br>>
root 1649 579 0 17:50:07
pts/2 0:17<br>> /opt/net-snmp/sbin/snmpd -d -f -Dagentx -x tcp:localhost:705<br>>
root 2935 2778 0 09:59:21
pts/3 0:00 grep snmpd<br>> (I am running debug mode; the syntax of ps command is a little bti<br>> different because I am using Solaris)<br>><br>> # grep -i agentx /var/log/snmpd.log<br>> agentx_build: packet built okay
<br>> agentx/master: handle pdu (req=0x3ac55fdb,trans=0x0,sess=0xf)<br>> agentx/master: send response, stat 0 (req=0x3ac55fdb,trans=0x0,sess=0xf)<br>> agentx_build: packet built okay<br>> agentx/master: handle pdu (req=0x3ac55fdc,trans=0x0,sess=0xf)
<br>> agentx/master: send response, stat 0 (req=0x3ac55fdc,trans=0x0,sess=0xf)<br>> agentx_build: packet built okay<br>> agentx/master: handle pdu (req=0x3ac55fdd,trans=0x0,sess=0xf)<br>> agentx/master: send response, stat 0 (req=0x3ac55fdd,trans=0x0,sess=0xf)
<br>> agentx_build: packet built okay<br>> ...<br>><br>> # cat /opt/net-snmp/share/snmp/snmpstats.conf<br>> agentXsocket tcp:localhost:705<br>><br>> # cat /opt/net-snmp/share/snmp/snmpd.conf<br>> syslocation XXXX
<br>> syscontact XXXX<br>> agentaddress udp:161<br>> rocommunity community localhost<br>> master agentx<br>><br>> As you can see, both of the files are located at the same directory.<br>><br>> Finally, I do have tried the check. I can see Openser starts OK and
<br>> the master agent receives the connection of the sub agent.<br>><br>> Thank you very much for your help.<br>><br>> Kind regards.<br>><br>> Sergio G.<br>><br>><br>><br>><br>><br>> On 3/29/07, *jmagder* <
<a href="mailto:jmagder@somanetworks.com">jmagder@somanetworks.com</a><br>> <mailto:<a href="mailto:jmagder@somanetworks.com">jmagder@somanetworks.com</a>>> wrote:<br>><br>> Hi Sergio,<br>><br>> First off, could you try running "/opt/net-snmp/bin/snmpwalk -v 2c -c
<br>> community sipserver .1.3.6.1.4.1.27483"? If that isn't succeeding,<br>> then it would greatly help me debug your problem if you could<br>> answer the<br>> following questions:<br>
><br>> 1) What is the output of "ps aux | grep snmpd"?<br>><br>> 2) What is the output of "cat /var/log/messages | grep AgentX"<br>><br>> 3) Can you show me the contents of
snmpstats.conf ?<br>><br>> 4) Does snmpd.conf contain "master agentx"?<br>><br>> 5) Is snmpd.conf located in the same directory as snmpstats.conf?<br>><br>> 6) Have you tried the steps in "Testing for a proper
<br>> Configuration" in<br>> section 1.6.4?<br>><br>> Thanks Sergio!<br>><br>> - Jeffrey Magder<br>><br>> Sergio Gutierrez wrote:<br>> > Hi list.<br>> >
<br>> > I have installed Openser 1.2.0, with Net-snmp version 5.4 to support<br>> > the SNMPstats module. I have configured the subagent according to<br>> the<br>> > instructions on the documentation, but I am not being able to obtain
<br>> > any data.<br>> ><br>> > I am running both products on Solaris 10 Sparc.<br>> ><br>> > # /opt/net-snmp/bin/snmpwalk -v 2c -c community sipserver<br>> > .1.3.6.1.4.1.27483.3.1.1.1.1.1.1
<br>> > SNMPv2-SMI::enterprises.27483.3.1.1.1.1.1 = No Such Object available<br>> > on this agent at this OID<br>> ><br>> > # /opt/net-snmp/bin/snmpwalk -v 2c -c community sipserver
<br>> > openserSIPProtocolVersion<br>> > SNMPv2-SMI::enterprises.27483.3.1.1.1.1.1 = No Such Object available<br>> > on this agent at this OID<br>> ><br>> > Is there any other thing I should do after compiling and
<br>> configuring?<br>> ><br>> > Thanks in advance for your attention<br>> ><br>> > Kind Regards.<br>> ><br>> > Sergio Gutiérrez<br>> ><br>> >
<br>> ><br>> > ------------------------------------------------------------------------<br>><br>> ><br>> > _______________________________________________<br>> > Users mailing list
<br>> > <a href="mailto:Users@openser.org">Users@openser.org</a> <mailto:<a href="mailto:Users@openser.org">Users@openser.org</a>><br>> > <a href="http://openser.org/cgi-bin/mailman/listinfo/users">
http://openser.org/cgi-bin/mailman/listinfo/users</a><br>> ><br>><br>><br><br></blockquote></div><br>