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

Reply via email to