Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Disk monitor agent

Published and supported by Webfish


Description

If you can't see the disk I/O utilization in New Relic it's may be because you run your server in a OpenVZ container. New Relic does not support this because that an OpenVZ container doesn't behave exactly like a real VM--it's a piece of a machine, not running its own full OS, and they just don't have capability to monitor it because we rely on OS-level stats which you won't have access to from your container.

This plugin allows you to monitor your server's disks usage in a OpenVZ container. It does not provide you with information about reads and writes. The purpose of this plugin is that it will warn you when your disks are almost full.


Requirements

In order to use this plugin, you must have an active New Relic account.

Plugin should work on any generic Unix environment with the following software components installed:

  • Ruby (>= 1.8.7)
  • Bundler for Ruby: https://github.com/carlhuda/bundler

Instructions for running the agent

  1. Clone the repository into /opt/
  2. Run cd /opt/NewRelic-Disk-Monitor-plugin
  3. Run bundle install to install required gems
  4. Edit config/newrelic_plugin.yml and replace "YOUR_LICENSE_KEY_HERE" with your New Relic license key
  5. Copy the init file sudo cp /opt/NewRelic-Disk-Monitor-plugin/Resources/newrelic_disk_agent.ini-file /etc/init.d/newrelic-disk-monitor
  6. Give the ini file the correct permission with sudo chmod +x /etc/init.d/newrelic-disk-monitor
  7. Start the plugin by running sudo /etc/init.d/newrelic-disk-monitor start

Troubleshoot

  1. Make sure you get a representable response from hostname -f.
  2. If you don't use the exact paths from the instructions make sure to update the ini-file
  3. Make sure that the newrelic user has a shell. usermod -s /bin/sh newrelic
  4. Check if the plugin has started with ps aux | grep "newrelic_disk_agent". If you don't find any running process (except from the ┬┤pscommand) you may remove the pid file.sudo rm /var/run/newrelic-disk-agent.pid`

Source

The source is hosted on GitHub: https://github.com/HappyR/newrelic_disk_agent


License

MIT


Support

Submit your issues here: https://github.com/HappyR/newrelic_disk_agent/issues


The Disk monitor agent plugin extends the power of New Relic's monitoring capabilities.


Get This Plugin

Already have a New Relic account? Log in and begin using this plugin.

If you don't have a New Relic account, follow these three simple steps:

How To Install A Plugin

Installing a plugin is simple and fast.

Installing
a Plugin
  1. Step One

    Sign in to your New Relic account

  2. Step Two

    Select and install plugin

  3. Step Three

    Start seeing data

That’s it. You’re done. Simple.

Sign Up for New Relic

Back to top icon