On 21 February 2011 02:03, <[email protected]> wrote:
> The commands
> "snmget -v2c -c public localhost system.sysUpTime" and "snmpwalk -v2c -c
> public localhost" both return "Timeout: No Response from localhost" even
> though there is a snmpd.conf file, with "rwcommunity public",
I *STRONGLY* suggest that you amend this to read "rocommunity public"
rather than using "rwcommunity".
> in the folders "/usr/etc/snmp" and "/usr/local/share/snmp" and "~/.snmp".
> The
> various paths were gotten from executing "net-snmp-config --snmpconfpath".
Try running
snmpd H -Dread_config 2>&1 | grep path
which will list the directories that the *agent* thinks it's looking in.
> What else is curious is that executing "snmpd" returns a "unable to find
> library.25.so" (something like that) even though snmpget --version is
> working as advertised.
That sounds as if you might have a mixture of locally-compiled and
vendor supplied software.
What is the exact error that snmpd returns?
Try running ldd snmpd
and ldd snmpget
What do these report?
Can you find the shared libraries that these report?
> 1. Where does the configuration file, snmpd.conf, for the agent belong on
> Ubuntu or is it that localhost isn't defined?
The problem won't be related to 'localhost'
If the agent isn't starting properly, then it's not too surprising if
queries fail.
> 2. If .bashrc does have LD_LIBRARY_PATH=/usr/local/lib, and the "echo
> LD_LIBRARY_PATH" does return /usr/local/lib on the command-line for the
> shell what needs to be exported or something for snmpd to be executed
> successfully from the shell?
I would suggest that instead of setting LD_LIBRARY_PATH
(which only works for that one use).
Instead, try creating a file
/etc/ld.so.conf.d/snmpd
containing
/usr/local/lib
and run the command "ldconfig".
That should fix things for *all* users.
Dave
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders