vendor/plugins/newrelic_rpm/lib/newrelic/agent/agent.rb
# Start up the agent, which will connect to the newrelic server and start 
# reporting performance information.  Typically this is done from the
# environment configuration file.  
# environment identifies the host environment, like mongrel, thin, or take.
# identifier is an identifier which uniquely identifies the process hosting
# the agent.  It should be ideally something like a server port, like 3000,
# a handler thread name, or a script name.  It should not be a PID because 
# that will change
# from invocation to invocation.  For something like rake, you could use
# the task name.
# Return false if the agent was not started
Start up the agent, which will connect to the newrelic server and start
reporting performance information.  Typically this is done from the
environment configuration file.
environment identifies the host environment, like mongrel, thin, or take.
identifier is an identifier which uniquely identifies the process hosting
the agent.  It should be ideally something like a server port, like 3000,
a handler thread name, or a script name.  It should not be a PID because
that will change
from invocation to invocation.  For something like rake, you could use
the task name.
Return false if the agent was not started
Start up the agent which will connect to the newrelic server and start reporting performance information . Typically this is done from the environment configuration file . environment identifies the host environment like mongrel thin or take . identifier is an identifier which uniquely identifies the process hosting the agent . It should be ideally something like a server port like 3000 a handler thread name or a script name . It should not be a PID because that will change from invocation to invocation . For something like rake you could use the task name . Return false if the agent was not started
def start(environment, identifier, force=false)
      @config ||= ::NR_CONFIG_FILE 
      if @started
        log! "Agent Started Already!"
        raise "Duplicate attempt to start the NewRelic agent"
      end
      @environment = environment
      @identifier = identifier && identifier.to_s
      if @identifier
        start_reporting(force)
        return true
      else
        return false
      end
    end
def start ( environment , identifier , force = false ) @config ||= :: NR_CONFIG_FILE if @started log! "Agent Started Already!" raise "Duplicate attempt to start the NewRelic agent" end @environment = environment @identifier = identifier && identifier . to_s if @identifier start_reporting ( force ) return true else return false end end
Start up the agent, which will connect to the newrelic server and start
reporting performance information.
Start up the agent which will connect to the newrelic server and start reporting performance information .
environment
<not_specific>
identifier
<not_specific>
force
<not_specific>