I have net-snmpd (ucd-compat) running on two machines. It was compiled and
installed on each machine, from identical code.
On one machine, I can successfully read snmp data back (including our mib)
using an external snmp client.
On the second machine, I cannot do so.
I generated an snmpd.conf file on each machine, and copied it to
/var/net-snmp
On the working machine, this file is never modified. Also,
/var/log/snmpd.log shows no messages.
On the failing machine, once snmpd is started, this file gets re-written by
some other file which discards the authentication information - then, the
next time it is run, snmpd.log shows:
Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file
for this agent.
NET-SNMP version 5.4.1
I don't know if this has anything to do with why I can't read my data back,
though. In fact, I don't have any idea why the two machines behave
differently. Does anyone else have any ideas??
I've tried adding some debug messages into the socket handler and my
modules. In the working machine I see:
Jan 18 13:12:54 hub26 snmpd: calling dispatch (count=1)
Jan 18 13:12:54 hub26 snmpd: calling snmp_read()
Jan 18 13:12:54 hub26 snmpd: in snmp_sess_read()
Jan 18 13:12:54 hub26 snmpd: ip3 magic [727]=2 <=== this is my module
Jan 18 13:12:54 hub26 snmpd: in snmp_sess_read()
and this is repeated for each device in our system.
In the failing machine, I see:
Jan 18 14:03:51 hub snmpd: calling dispatch (count=1)
Jan 18 14:03:51 hub snmpd: calling snmp_read()
Jan 18 14:03:51 hub snmpd: in snmp_sess_read()
<=== my mib module is not being called!!
Jan 18 14:03:51 hub snmpd: in snmp_sess_read()
I have no idea where to look for any differences, though... ??
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders