Hi Dave, Sorry, I see now didn't explain the question very well in my first post. I don't know too much about the 'com2sec' directive, but I will take a look and post the solution anyway :-)
Tx, Isi, -----Mensaje original----- De: Dave Shield [mailto:[EMAIL PROTECTED] Enviado el: martes, 22 de noviembre de 2005 13:38 Para: Legido Martínez, Isidoro CC: [email protected] Asunto: RE: net-snmp as gateway On Tue, 2005-11-22 at 12:27 +0100, Legido Martínez, Isidoro wrote: > Sorry, but I still don't see the solution. > > So, I have my Cricket instance configured for monitoring one parameter > in 2 hosts (maybe I should post that in the Cricket's mailing list too). > That means I have something like: > > [Cricket config] > datasource param1-host1 > ds-source = snmp://[EMAIL PROTECTED]:161/<oid for param1> > > datasource param1-host2 > ds-source = snmp://[EMAIL PROTECTED]:161/<oid for param1> > > So, I send the same OID to the same SNMP instance! OK - that's a slightly different question to the one I was answering. There are two separate (but related) issues here: a) How can the management client (Cricket) tell the agent which host to report on? b) How can the agent tell the extension script which host to report on? My answer was addressing the second of those - not the first. The standard way to handle the first issue would be to use different community strings for the two cases: > datasource param1-host1 > ds-source = snmp://[EMAIL PROTECTED]:161/<oid for param1> > > datasource param1-host2 > ds-source = snmp://[EMAIL PROTECTED]:161/<oid for param1> Then have the agent map these community strings into equivalent "contexts" (see the 'com2sec' directive) and register the two extension scripts in the relevant contexts (which may need some tweaking of the code). Is that any help? Dave ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28&alloc_id845&op=click _______________________________________________ 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
