On Tue, 2005-06-14 at 09:35, Thorsten Freimann wrote: > Hi to all, > I coded a little application (sendtrap) to send snmp traps... > when I run sendtrap without root rights: > >> > usr/local/net-snmp-5.2/share/snmp/mibs/netSnmpExampleInteger.h: Permission > denied
> ok I know what "Permission denied" meen, but why is sendtrap trying to access > this files? You've written your own program, without giving us any idea what the code looks like, and *you* are asking *us* how it works? How do you expect us to be able to answer that! > Second: even if I run sendtrap wtih root rights, it prints out some message, > I am not interested in: > >> > /usr/local/net-snmp-5.2/share/snmp/snmpd.conf: line 19: Warning: Unknown > token: rwcommunity. > /usr/local/net-snmp-5.2/share/snmp/snmpd.conf: line 55: Warning: Unknown > token: master. > << > How can I avoid that sendtrap prints out this messages? By turning off logging while you initialise the library. Dave ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
