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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to