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
- Clone the repository into /opt/
- Run
cd /opt/NewRelic-Disk-Monitor-plugin
- Run
bundle install
to install required gems - Edit
config/newrelic_plugin.yml
and replace "YOUR_LICENSE_KEY_HERE" with your New Relic license key - Copy the init file
sudo cp /opt/NewRelic-Disk-Monitor-plugin/Resources/newrelic_disk_agent.ini-file /etc/init.d/newrelic-disk-monitor
- Give the ini file the correct permission with
sudo chmod +x /etc/init.d/newrelic-disk-monitor
- Start the plugin by running
sudo /etc/init.d/newrelic-disk-monitor start
Troubleshoot
- Make sure you get a representable response from
hostname -f
. - If you don't use the exact paths from the instructions make sure to update the ini-file
- Make sure that the
newrelic
user has a shell.usermod -s /bin/sh newrelic
- 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.