[collectd] CollectD installation with virt plugin
chetan.sonar
chetan.sonar at wwindia.com
Thu Feb 19 08:35:28 CET 2015
Hi Guys,
I need urgent help.
We are trying to gather LVM virtual machines CPU and MEM utilization
details using CollectD Virt Plugin but failing to install it properly :
After the installation I am not able to access http://localhost/collectd
because there is nothing in /var/ww/html
Can you provide me the proper installation procedure to install Collectd
libvirt plugin, I have followed below procedure -
Install collectd
1
2
3
|yum install collectd -y|
|yum install collectd-virt -y|
|yum install collectd-apache -y|
In /etc/collectd.conf replace:
1
|PluginDir "/usr/lib/collectd"|
With:
1
|PluginDir "/usr/lib64/collectd"|
In /etc/collectd.conf uncomment the following lines, while replacing
BaseDir with the location you want the rrd output files to go to
1
2
3
4
5
6
7
8
9
10
11
|BaseDir "/usr/var/lib/collectd"|
|PIDFile "/usr/var/run/collectd.pid"|
|PluginDir "/usr/lib64/collectd"|
|LoadPlugin logfile|
|<Plugin logfile>|
|||LogLevel info|
|||File "/var/log/collectd.log"|
|||Timestamp true|
|||PrintSeverity false|
|</Plugin>|
Also uncomment the following to load apache and libvirt plugins:
1
2
3
4
5
6
7
8
9
10
11
12
|LoadPlugin apache|
|LoadPlugin libvirt|
|<Plugin libvirt>|
|||Connection "kvm:///"|
|||RefreshInterval 60|
|# Domain "name"|
|# BlockDevice "name:device"|
|# InterfaceDevice "name:device"|
|# IgnoreSelected false|
|# HostnameFormat name|
|</Plugin>|
Start collectd
1
|/etc/init.d/collectd start|
One way to view collectd stats is to use Apache with collectd-web.
Install collectd-web:
1
|yum install collectd-web -y|
Edit the collections file:
1
2
3
|vim /etc/collections.conf|
|Change DataDir to be:|
|DataDir "/var/log/collectd/"|
Also, rewrite HTTP to HTTPS for security:
1
2
3
4
|Redirect HTTP to HTTPS:|
|RewriteEngine On|
|RewriteCond %{HTTPS} off|
|RewriteRule (.*) https://% <https://%25/>{HTTP_HOST}%{REQUEST_URI}|
Point your browser tohttp://localhost/collectd
--
------
Regards,
Chetan Sonar
Cloud Manager
Web Werks India Pvt. Ltd.
Mob : +918879229981
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20150219/24123872/attachment-0001.html>
More information about the collectd
mailing list