new services are not taken in account by snmp deamon after deployment.
search cancel

new services are not taken in account by snmp deamon after deployment.

book

Article ID: 428620

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

When adding a new service in API  gateway the snmpwalk does not include the new service in the list provided by the snmpd deamon.

We are using the  procedure in the docs:

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/11-2/reference/monitor-the-layer7-api-gateway/monitor-the-gateway-using-snmp.html

with the SNMPAgentAssertion-1.0.5.aar  assertion.

Resolution

This happens when the  snmpd deamon is constantly queried on this oid ,  it will not refresh but use the cached data .

To reproduce 

run a script which queries the snmpd like 

count=100
for i in $(seq $count); do
     snmpwalk -v1 -c <community>  localhost 1.3.6.1.4.1.17304.7.1.2 | wc -l
done

if you update the services by adding one or deleting one it is not reflected in the count until the script is stopped and restarted. 

This is a limitation  from the Debian snmpd daemon which is caching the previous result.