AE-2263: Snmpv3 config is overridden during device registration
Review Request #1211 — Created Dec. 5, 2025 and submitted
| Information | |
|---|---|
| apoorva.sn | |
| AMP | |
| amp_3_7_2 | |
| AE-2263 | |
| Reviewers | |
| mmiriam, ngurunathan, pmurugaiyan, pradeep, shuinvy | |
Problem
During device registration the SNMPv3 configuration done by user is overriden in the telegraf configuration file. This happens because of the previous implementation on AMP.
Solution
Since we do not have source code for composer tele, need to handle this in a different way so that the SNMPv3 configuration is written properly unto telegraf config file for proper snmp communication between device and AMP.
So have added 2 minutes sleep so that the config is written again in case it will be removed by the older implementation(composer_tele) of SNMPv3
We can remove this code once we move to amp4
Tested that the data is coming to AMP for the SNMPv3 config devices
select * from virtualStats where agent_host='192.168.162.166' and time > now()-1m order by time DESC limit 5;
name: virtualStats
time Addr BackupHits CacheHits ConnCnt ConnPerSec DefaultHits HashURLHits HeaderHits HealthStatus HostnameHits ICookieHits InBytePerSec InPacketPerSec OutBytePerSec OutPacketPerSec PerstntCookieHits PerstntURLHits Port Protocol QosBodyHits QosClientPortHits QosCookieHits QosNetworkHits QosURLHits RCookieHits RedirectHits RegexHits ServerId StaticHits URLHits agent_host totalHits
---- ---- ---------- --------- ------- ---------- ----------- ----------- ---------- ------------ ------------ ----------- ------------ -------------- ------------- --------------- ----------------- -------------- ---- -------- ----------- ----------------- ------------- -------------- ---------- ----------- ------------ --------- -------- ---------- ------- ---------- ---------
1764895190000000000 192.168.162.92 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 443 5 0 0 0 0 0 0 0 0 vs1 0 0 192.168.162.166 0
1764895180000000000 192.168.162.92 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 443 5 0 0 0 0 0 0 0 0 vs1 0 0 192.168.162.166 0
1764895170000000000 192.168.162.92 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 443 5 0 0 0 0 0 0 0 0 vs1 0 0 192.168.162.166 0
1764895160000000000 192.168.162.92 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 443 5 0 0 0 0 0 0 0 0 vs1 0 0 192.168.162.166 0
1764895150000000000 192.168.162.92 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 443 5 0 0 0 0 0 0 0 0 vs1 0 0 192.168.162.166 0select * from virtualStats where agent_host='192.168.162.160' and time > now()-1m order by time DESC limit 5;
name: virtualStats
time Addr BackupHits CacheHits ConnCnt ConnPerSec DefaultHits HashURLHits HeaderHits HealthStatus HostnameHits ICookieHits InBytePerSec InPacketPerSec OutBytePerSec OutPacketPerSec PerstntCookieHits PerstntURLHits Port Protocol QosBodyHits QosClientPortHits QosCookieHits QosNetworkHits QosURLHits RCookieHits RedirectHits RegexHits ServerId StaticHits URLHits agent_host totalHits
---- ---- ---------- --------- ------- ---------- ----------- ----------- ---------- ------------ ------------ ----------- ------------ -------------- ------------- --------------- ----------------- -------------- ---- -------- ----------- ----------------- ------------- -------------- ---------- ----------- ------------ --------- -------- ---------- ------- ---------- ---------
1764895200000000000 192.168.162.99 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 443 5 0 0 0 0 0 0 0 0 virtual_service 114 0 192.168.162.160 114
1764895190000000000 192.168.162.99 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 443 5 0 0 0 0 0 0 0 0 virtual_service 114 0 192.168.162.160 114
1764895180000000000 192.168.162.99 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 443 5 0 0 0 0 0 0 0 0 virtual_service 114 0 192.168.162.160 114
1764895170000000000 192.168.162.99 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 443 5 0 0 0 0 0 0 0 0 virtual_service 114 0 192.168.162.160 114
1764895160000000000 192.168.162.99 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 443 5 0 0 0 0 0 0 0 0 virtual_service 114 0 192.168.162.160 114
