- Download the
standalone.rbfile to your computer. Place it in an empty directory by itself. The file does not need to be made executable. The first "shebang" line of the file will be ignored, so the path is not important. - Create a
newrelic.ymlfile or copy an existing one from an existing project to the directory containingstandalone.rb - At a comand prompt in the directory, run
ruby standalone.rb - If the standalone test script is successful, its output will look like this:
Starting New Relic agent...
Waiting for New Relic agent to connect...
Looping application routine 5 time(s)...
Giving the New Relic agent harvester time to send data up (sleep = 60 secs)...
Shutting down New Relic agent...- After the script finishes running, the directory should now contain a new
logsubdirectory along with two new log files,log/newrelic_agent.logandlog/newrelic_audit.log
- If the console/terminal output looks different than the example shown above, please let New Relic know what the output was.
- Look for any occurrences of
WARNorERROR(in all caps) in thelog/newrelic_agent.logfile and let New Relic know about them.