Could not find any downloads that satisfy the requirement newrelic-plugin-agent

大憨熊 提交于 2019-12-04 14:50:44
kerkero

After installing the Plugin Agent today on Ubuntu 12.04, I enhanced the guide that MeetMe provides. Try the following steps:

  1. Install pip:

    $ sudo apt-get install python-pip python-dev build-essential

    $ sudo pip install --upgrade pip

    $ sudo pip install --upgrade virtualenv

  2. For certain plugins there might be additional installations, so check out the plugin instructions. [MongoDB plugin for example needs python driver for Mongo]

  3. Copy the configuration file example to /etc/newrelic/newrelic_plugin_agent.cfg and edit the configuration in that file to enable the plugin and set the New Relic license key:

    $ sudo cp /opt/newrelic_plugin_agent/etc/newrelic/newrelic_plugin_agent.cfg /etc/newrelic/newrelic_plugin_agent.cfg

  4. Change ownership of newrelic folders to newrelic user:

    $ sudo chown newrelic:newrelic /var/run/newrelic

    $ sudo chown newrelic:newrelic /var/log/newrelic

  5. Run the agent:

    $ sudo newrelic_plugin_agent -c /etc/newrelic/newrelic_plugin_agent.cfg

  6. If the process is not staying up try to run it as foreground process and check out the output:

    $ sudo newrelic_plugin_agent -c /etc/newrelic/newrelic_plugin_agent.cfg -f

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!