[OPENAM-13764] Monitoring logs in ERROR for "Agent.configAgentsOnly:agent type = OAuth2Client" Created: 15/Oct/18  Updated: 28/May/20  Resolved: 28/May/20

Status: Resolved
Project: OpenAM
Component/s: debug logging, monitoring
Affects Version/s: 14.1.0, 14.1.1, 5.5.1, 6.0.0,,,,
Fix Version/s: 7.0.0, 6.5.3

Type: Bug Priority: Minor
Reporter: C-Weng C Assignee: C-Weng C
Resolution: Fixed Votes: 0
Labels: EDISON
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Rank: 1|hzwxvb:
Sprint: AM Sustaining Sprint 75
Story Points: 1
Support Ticket IDs:
Needs QA verification:
Functional tests:
Are the reproduction steps defined?:
Yes and I used the same an in the description


Bug description

When enabled monitoring and if there is any OAuth2 client, this will log in ERROR

ERROR: Agent.configAgentsOnly:agent type = OAuth2Client, agent name = ???? not supported.

How to reproduce the issue

  1. Enable Monitoring (eg: enable all monitoring https://backstage.forgerock.com/docs/am/6/maintenance-guide/#monitoring-snmp)
  2. Create a few OAuth2 clients
  3. Start AM and observe CoreSystem logs from ERROR
Expected behaviour
Logging on as informational or warning but never ERROR
Current behaviour
Logging error for unsupported OAuth2/OpenID agent

Work around

Ignore this as there is no impact

Code analysis

Code does not cater for this missing AgentType and treats it as error. In fact for these it should be information and if really there is is new AgentType that is unknown at most it is warning.

Generated at Sun May 09 06:56:34 UTC 2021 using Jira 8.16.0#816000-sha1:a455b91378454416b49bbc88d03e653cb9815ed5.