generallamp

Install the New Relic plugin agent

The New Relic plugin agent polls supported back-end systems and submits the results to the New Relic platform. Follow these installation steps:

  • Install the agent using pip:

      $ sudo pip install newrelic-plugin-agent
    
      Downloading/unpacking newrelic-plugin-agent
      Downloading newrelic_plugin_agent-1.3.0.tar.gz
      Running setup.py egg_info for package newrelic-plugin-agent
    
      Downloading/unpacking helper>=2.2.2 (from newrelic-plugin-agent)
      Downloading helper-2.4.1.tar.gz
      Running setup.py egg_info for package helper
    
      Downloading/unpacking requests>=2.0.0 (from newrelic-plugin-agent)
      Downloading requests-2.3.0.tar.gz (429kB): 429kB downloaded
      Running setup.py egg_info for package requests
    
      Requirement already satisfied (use --upgrade to upgrade): pyyaml in /opt/bitnami/python/lib/python2.7/site-packages (from helper>=2.2.2->newrelic-plugin-agent)
      Installing collected packages: newrelic-plugin-agent, helper, requests
      Running setup.py install for newrelic-plugin-agent
    
      Installing newrelic-plugin-agent script to /opt/bitnami/python/bin
      Running setup.py install for helper
    
      Found existing installation: requests 1.2.3
      Uninstalling requests:
        Successfully uninstalled requests
      Running setup.py install for requests
    
      Successfully installed newrelic-plugin-agent helper requests
      Cleaning up...
    
  • Run the following command to start the New Relic Plugin agent:

      $ sudo python /opt/bitnami/python/bin/newrelic-plugin-agent -c /opt/newrelic-plugin-agent/newrelic-plugin-agent.cfg -f
    

    It is also possible to run the plugin agent without specifying the python command before. To do this, change the first line of the /opt/bitnami/python/bin/newrelic-plugin-agent script as follows:

      #!/usr/bin/env python
    

    Then, start the agent using the following command:

      $ sudo newrelic-plugin-agent -c /opt/newrelic-plugin-agent/newrelic-plugin-agent.cfg -f
    
Last modification December 21, 2022