Syslog level control

Roberto Greiner <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
  Hi,

I´m trying to set what is sent to syslog by net-snmp, and managed to 
obtain some control of the log level with the line

SNMPDOPTS='-LS 4d -Lf /dev/null -u snmp -p /var/run/snmpd.pid'

in my /etc/defaults/snmpd file. Changing the 'n' in '-LS nd' above, I 
can control the log level. My problem is that I would like net-snmp not 
to log successful connections, but to log connections attempts with 
invalid communities. Level 6 logs connections with both valid and 
invalid communities. Level 5 logs neither. Is there any way to achieve this?

For information, I'm running Debian 5.0.4, with net-snmpd version 5.4.1 
(installed via Debian apt).

Thank you,

Roberto

-- 
   -----------------------------------------------------
                 Marcos Roberto Greiner

    Os otimistas acham que estamos no melhor dos mundos
     Os pessimistas tem medo de que isto seja verdade
                                   James Branch Cabell
   -----------------------------------------------------


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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.