sonic-buildimage/dockers
SuvarnaMeenakshi 945278f6d8
[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-12 14:40:01 -08:00
..
docker-base Support to build armhf/arm64 platforms on arm based system (#7731) 2021-08-12 22:24:37 +08:00
docker-base-bullseye Create docker-base-bullseye and docker-config-engine-bullseye (#9666) 2022-01-11 09:23:42 -08:00
docker-base-buster Support to build armhf/arm64 platforms on arm based system (#7731) 2021-08-12 22:24:37 +08:00
docker-base-stretch Support to build armhf/arm64 platforms on arm based system (#7731) 2021-08-12 22:24:37 +08:00
docker-basic_router [supervisord]: use abspath as supervisord entrypoint (#5995) 2020-11-22 21:18:44 -08:00
docker-config-engine [docker-base-buster][docker-config-engine-buster] No longer install Python 2 (#6162) 2020-12-25 21:29:25 -08:00
docker-config-engine-bullseye Create docker-base-bullseye and docker-config-engine-bullseye (#9666) 2022-01-11 09:23:42 -08:00
docker-config-engine-buster [docker-base-buster][docker-config-engine-buster] No longer install Python 2 (#6162) 2020-12-25 21:29:25 -08:00
docker-config-engine-stretch [docker-base-buster][docker-config-engine-buster] No longer install Python 2 (#6162) 2020-12-25 21:29:25 -08:00
docker-database [PINS] Add APPL_STATE_DB and response path log (#9082) 2021-11-24 10:31:06 -08:00
docker-dhcp-relay [dhcp_relay] Update DHCPv6 counter on relayed messages (#9283) 2021-11-30 20:15:30 -08:00
docker-fpm-frr Create a docker-swss-layer that holds the swss package. 2022-01-06 09:26:55 -08:00
docker-fpm-gobgp [dockers][supervisor] Increase event buffer size for process exit listener; Set all event buffer sizes to 1024 (#7083) 2021-03-27 21:14:24 -07:00
docker-iccpd add platform to iccpd's env (#8945) 2021-12-08 09:21:44 -08:00
docker-lldp [Monit] Deprecate the feature of monitoring the critical processes by Monit (#7676) 2021-06-04 10:16:53 -07:00
docker-macsec Create a docker-swss-layer that holds the swss package. 2022-01-06 09:26:55 -08:00
docker-mux [mux]: Call write_standby from host only 2021-10-15 09:59:59 -07:00
docker-nat Create a docker-swss-layer that holds the swss package. 2022-01-06 09:26:55 -08:00
docker-orchagent Enable/Disable Order ECMP feature. (#9651) 2022-01-06 16:40:50 -08:00
docker-pde [PDE]: introduce the SONiC Platform Development Env (#7510) 2021-07-24 16:24:43 -07:00
docker-platform-monitor [docker-platform-monitor]: Remove Python 2 2022-01-06 09:26:55 -08:00
docker-ptf Add openbfdd to ptf docker (#9488) 2021-12-14 11:46:48 -08:00
docker-router-advertiser [radv] Run radv on MgmtToRRouter (#9424) 2021-12-03 09:45:06 -08:00
docker-sflow Create a docker-swss-layer that holds the swss package. 2022-01-06 09:26:55 -08:00
docker-snmp [docker-snmp]: Modify log level of snmpd (#9734) 2022-01-12 14:40:01 -08:00
docker-sonic-mgmt [build] Fix docker-sonic-mgmt pylint dependency lazy-object-proxy version (#9596) 2021-12-24 10:42:37 +08:00
docker-sonic-mgmt-framework [docker-mgmt-framework]: Don't overwrite /etc/passwd and /etc/group with symlinks (#9375) 2021-11-24 23:51:59 -08:00
docker-sonic-p4rt [PINS] Build P4RT container for PINS (#9083) 2021-12-07 11:11:25 -08:00
docker-sonic-restapi autorestart inside restapi docker is disabled (#8006) 2021-07-14 11:37:00 -07:00
docker-sonic-sdk [sonic-sdk] add sonic sdk and sonic sdk buildenv (#6712) 2021-05-28 10:16:02 -07:00
docker-sonic-sdk-buildenv [sonic-sdk] add sonic sdk and sonic sdk buildenv (#6712) 2021-05-28 10:16:02 -07:00
docker-sonic-telemetry [Monit] Deprecate the feature of monitoring the critical processes by Monit (#7676) 2021-06-04 10:16:53 -07:00
docker-swss-layer-buster Create a docker-swss-layer that holds the swss package. 2022-01-06 09:26:55 -08:00
docker-teamd Create a docker-swss-layer that holds the swss package. 2022-01-06 09:26:55 -08:00
dockerfile-macros.j2 [sonic-config-engine] Clean up dependencies, pin versions; install Python 3 package in Buster container (#5656) 2020-10-26 13:48:50 -07:00