Red Hat Bugzilla – Bug 535013
add a new SIGAR_DEBUG env var to rhq-agent.sh/bat for enabling SIGAR native logging
Last modified: 2013-08-05 20:32:36 EDT
We should add a new SIGAR_DEBUG env var to rhq-agent.sh/bat for enabling SIGAR native logging, rather than having RHQ_AGENT_DEBUG enable it. SIGAR native logging is very verbose - prints 3 or 4 lines every time new Sigar() is called. For many customer cases, we will not need SIGAR native logging, and when we do, we can ask them to set SIGAR_DEBUG.
need to add this to -env.bat/sh - I have to check the agent plugin to see if anything has to change, as well as agent auto-upgrade
RHQ_AGENT_SIGAR_DEBUG is the new setting that must be true for sigar logging to be enabled (this must be true AND the agent debug must be true). Here's the comments from -env.sh that explains this:
# RHQ_AGENT_DEBUG - If this is defined, the script will emit debug
# messages. It will also enable debug
# messages to be emitted from the agent itself.
# If not set or set to "false", debug is turned off.
# This does not implicitly enable Sigar native system
# debug mode. You must explicitly enable
# RHQ_AGENT_SIGAR_DEBUG in addition to enabling
# RHQ_AGENT_DEBUG for Sigar logging to be enabled.
# RHQ_AGENT_SIGAR_DEBUG - Enables Sigar debug mode but only if agent debug
# is also enabled. See RHQ_AGENT_DEBUG for more.
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1753