If you are not seeing the disk i/o stats reporting back into Server Density you should check the agent log at /var/log/sd-agent/sd-agent.log
or /tmp/sd-agent.log
(depending on whether you used our OS packages or the manual installation).
This article is for our v1 agent and will soon be deprecated.
You may see an error similar to the following:
2011-05-09 18:31:24,705 - main - ERROR - getIOStats: exception = Traceback
(most recent call last):
File "/usr/local/sd-agent/checks.py", line 438, in getIOStats
proc = subprocess.Popen(['iostat', '-d', '1', '2', '-x', '-k'],
stdout=subprocess.PIPE, close_fds=True)
File "/usr/lib64/python2.5/subprocess.py", line 594, in __init__
errread, errwrite)
File "/usr/lib64/python2.5/subprocess.py", line 1091, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
The most likely cause of this is the iostat
command being unavailable. The agent requires the sysstat
system package which contains the iostat
tool. You should install this in order to get the disk i/o stats.
On most forms of Linux this package will be available through your system package manager. E.g on Fedora, Red Hat and CentOS this is yum install sysstat
and on Debian and Ubuntu this is apt-get install sysstat
. The package is also available for Gentoo.
Comments