Re: sub-agent not reading configuration parameters

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Steve S. Law wrote:
> I wonder why the same code behaves differenly on two
> machines. Somehow the subagent is not finding
> "my_agent.conf" file? How can I debug which
> configuration file path is being accessed by my
> sub-agent?

For net-snmp 5.2.2 and later, "net-snmp-config --snmpconfpath" will tell 
you.

There's also the read_config debug token that can be turned on by the 
"-D<token>" command-line option (probably not supported by your 
subagent) or the snmp.conf "debugTokens <token>" config directive 
(chicken and egg since you don't know where to put it).

So I'd actually propose running "strace -e trace=open /path/to/subagent" 
to find out.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.