It is very important to enable the monitoring tools like sar,iostat etc especial when you run your server as a virtual servers.
You can not install sar as "yum install sar" . So we need to know what is the package is for these utilities to installed.
If any of your server is enabled command called "sar" then you can trace which package is used for this utility.
[root@ajeesh ~]# yum whatprovides "/usr/bin/sar"
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* openvz-kernel-rhel5: mirror.fdcservers.net
* openvz-utils: mirror.fdcservers.net
sysstat-7.0.2-11.el5.x86_64 : The sar and iostat system monitoring commands.
Repo : base
Matched from:
Filename : /usr/bin/sar
sysstat-7.0.2-11.el5.x86_64 : The sar and iostat system monitoring commands.
Repo : installed
Matched from:
Other : Provides-match: /usr/bin/sar
OR
[root@ajeesh ~]# rpm -qf /usr/bin/sar
sysstat-7.0.2-11.el5
So we can install all these utilities using
[root@ajeesh ~]# yum install sysstat
Error:
[root@ajeesh ~]# sar
Cannot open /var/log/sa/sa01: No such file or directory
Solution:
cd /etc/init.d
chmod 755 sysstat
You can not install sar as "yum install sar" . So we need to know what is the package is for these utilities to installed.
If any of your server is enabled command called "sar" then you can trace which package is used for this utility.
[root@ajeesh ~]# yum whatprovides "/usr/bin/sar"
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* openvz-kernel-rhel5: mirror.fdcservers.net
* openvz-utils: mirror.fdcservers.net
sysstat-7.0.2-11.el5.x86_64 : The sar and iostat system monitoring commands.
Repo : base
Matched from:
Filename : /usr/bin/sar
sysstat-7.0.2-11.el5.x86_64 : The sar and iostat system monitoring commands.
Repo : installed
Matched from:
Other : Provides-match: /usr/bin/sar
OR
[root@ajeesh ~]# rpm -qf /usr/bin/sar
sysstat-7.0.2-11.el5
So we can install all these utilities using
[root@ajeesh ~]# yum install sysstat
Error:
[root@ajeesh ~]# sar
Cannot open /var/log/sa/sa01: No such file or directory
Solution:
cd /etc/init.d
chmod 755 sysstat
No comments:
Post a Comment