On 21 March 2011 19:33, Donald Russell <[email protected]> wrote:
>> What does your pass script look like?
>
> First, my snmpd.local.conf file has:
> pass .1.3.6.1.4.1.15966.1 /usr/local/bin/passtest
>
> The passtest script is:
[snip]
> Yet in my /tmp.passtest.log file I see
> -g .1.3.6.1.4.1.15966.1.1
> RET=.1.3.6.1.4.1.15966.1.1; TYPE=integer; VALUE=42
> So the script was invoked
>
> #snmpwalk .1.3.6.1.4.1.15966.1
> SNMPv2-SMI::enterprises.15966.1 = No Such Instance currently exists at this
> OID
Are you running this agent as root, or as a non-privileged user?
When I tried this (running the agent as myself), and walked this OID,
the agent printed the error:
can not create cache file
/var/net-snmp/.snmp-exec-cache: Permission denied
and I didn't see anything.
When I restarted the agent as root (with exactly the same setup),
I could walk the tree as expected.
Might that be the problem you are seeing?
Does the agent log anything when you query the pass tree?
Dave
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders