Logging Level

Cameron Smith <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On CentOS I am trying to reduce the logging level of snmpd.

I tried editing /etc/sysconfig/snmpd.options changing:

OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a"

to

OPTIONS="-Ls 4 d -Lf /dev/null -p /var/run/snmpd.pid -a"

And it gave me this error in messages on service restart:
Oct 19 10:26:40 vps snmpd[6129]: Error opening specified endpoint "d" 
Oct 19 10:26:40 vps snmpd[6129]: Server Exiting with code 1

It also gave me this output on service status:
[root@vps ~]# service snmpd status
snmpd dead but subsys locked

I removed the edit and then tried to set logging in /etc/snmp/snmpd.conf by adding:

logging size=0 level=4

Which gave me the error:
Oct 19 10:29:33 vps snmpd[9345]: /etc/snmp/snmpd.conf: line 5: Warning: Unknown token: logging.


How do I set the logging level without throwing an error?

Thanks,
Cameron
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
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.