sonic-buildimage/dockers/docker-snmp
SuvarnaMeenakshi 74959dcb45 [docker-snmp]: Modify log level of snmpd (#9734)
#### Why I did it
resolves https://github.com/Azure/sonic-buildimage/issues/8779
snmpd writes the below error message in syslog :
snmp#snmpd[27]: truncating integer value > 32 bits
This message is written in syslog when the hrSystemUptime(1.3.6.1.2.1.25.1.1.0 / system uptime) or sysUpTime(1.3.6.1.2.1.1.3 network management portion or snmpd uptime) is queried when either of these counters overflow beyond 32 bit value. This happens the device uptime or snmpd uptime is more than 497 days.

#### How I did it
Reference: https://access.redhat.com/solutions/367093 and https://linux.die.net/man/1/snmpcmd

To avoid seeing this message if the counter grows, the snmpd error log level is changed to display  LOG_EMERG, LOG_ALERT, LOG_CRIT, and LOG_DEBUG.

Without this change, LOG_ERR and LOG_WARNING would also be logged in syslog.

#### How to verify it
On a device which is up for more than 497 days, modify supervisord.conf  with the change and restart snmp.
Query 1.3.6.1.2.1.1.3 and verify that log message is not seen.
2022-01-16 22:45:18 -08:00
..
critical_processes [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
Dockerfile.j2 Convert snmp.yml to configdb (#6205) 2020-12-28 11:51:58 -08:00
snmp_yml_to_configdb.py Convert snmp.yml to configdb (#6205) 2020-12-28 11:51:58 -08:00
snmpd.conf.j2 [snmp]: updated to support snmp config from redis configdb (#6134) 2021-01-05 13:43:29 -08:00
start.sh [snmp]: updated to support snmp config from redis configdb (#6134) 2021-01-05 13:43:29 -08:00
supervisord.conf [docker-snmp]: Modify log level of snmpd (#9734) 2022-01-16 22:45:18 -08:00
sysDescription.j2 [dockers] Rename 'docker-snmp-sv2' to 'docker-snmp' (#4699) 2020-06-11 16:04:23 -07:00