Hi Dave,
Thanks a lot for your fast reply! :-)
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! That means it has no way to
know that the first goes to host1 and the second to host2.
Let's suppose I have configured /etc/hosts
127.0.0.1 localhost host1 host2
and Cricket like:
[Cricket config]
datasource param-host1
ds-source = snmp://[EMAIL PROTECTED]:161/<oid for param1>
datasource param-host2
ds-source = snmp://[EMAIL PROTECTED]:161/<oid for param1>
Does that help?
Thanks again,
Isi,
-----Mensaje original-----
De: Dave Shield [mailto:[EMAIL PROTECTED]
Enviado el: martes, 22 de noviembre de 2005 12:05
Para: Legido Martínez, Isidoro
CC: [email protected]
Asunto: Re: net-snmp as gateway
On Tue, 2005-11-22 at 11:51 +0100, Legido Martínez, Isidoro wrote:
> So, the question is: how can I say to the Perl script which is the
> remote host related to the initial request if the only information
> it has is the OID, which is the same for all the hosts? Several solutions:
> + The OID string contains a reference to the host (ugly! and not portable)
> + Several instances of net-snmp running in the same machine, each of them
> listening in a different port. I'm not sure if that is possible or may
> be is too heavy (we are thinking monitoring around 100 remote systems).
+ Several scripts (or several links to the same script), and use
the name of the invoked script to determine which host to query
For example
$ ls -l /usr/local/snmp2http/hosts
lrwxrwxrwx ..... host1 -> ../script
lrwxrwxrwx ..... host2 -> ../script
lrwxrwxrwx ..... host2 -> ../script
$ head /usr/local/snmp2http/script
#!/usr/bin/perl
$remote_host = $0;
<etc, etc>
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