0 Replies Latest reply on Feb 14, 2014 8:31 PM by genman

    Log the agent name (or IP) in the log file?

    genman

      I sometimes see this error, or others:

       

      01:27:36,583 ERROR [org.rhq.enterprise.server.alert.engine.internal.AlertConditionCacheCoordinator] (EJB default - 5) Could not find agent for scheduleId = 7977263
      01:27:40,136 ERROR [org.rhq.enterprise.server.alert.engine.internal.AlertConditionCacheCoordinator] (EJB default - 6) Could not find agent for scheduleId = 7977737
      

       

      I'd like it if the server logs for RHQ could display the address of the agent, so I can figure out which agent might need to be restarted.

       

      Could the server make use of org.jboss.logging.MDC to capture the address and then use this in the logs?

       

      I'm not sure the best way to do this, since I know RHQ doesn't use JBoss Logging directly.