> From: [email protected] [mailto:[email protected]]
> Sent: Friday, May 01, 2009 9:54 AM
> But as I installed net-snmp and tried to create the perl
> agent it turned
> out that the only perl agent I can write is one running
> imbedded in the
> snmpd process.
Do you mean a subagent? Generally, an "agent" handles SNMP requests
from outside entities and determines the answer, either from its own logic or
by querying attached "subagents", which each handle typically only a specific
MIB or two.
> Is it possible to write a perl agent - a standalone perl agent - not
> started by snmp* daemon ?
> By standalone I mean the agent can be started from shell prompt with
> "/opt/acme/bin/perl /opt/acme/bin/my-snmp-agent"
For a subagent - yes, in principle, but there's no support for such in
net-snmp.
> if not, may be it is possible to tell snmpd daemon to use
> /opt/acme/bin/perl interpreter when it sees the
> "perl do /opt/acme/bin/my-agent.pl"
> in the snmpd.conf ?
What?!
> I have been banging my head with this for last 3 days,
> reinstalling perl
> and net-snmp packs.
> I do appreciate any hints/help
You can implement a virtual subagent with the "extend" directive of
snmpd.conf like so:
extend .1.3.6.1.4.1.8072.9999.99 agent-99 /opt/acme/bin/perl
/opt/acme/bin/my-agent.pl
Perhaps this is what you are trying to do?
HTH,
Mike
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
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