Graphical Monitoring with Collectd in Linux

Monitoring with collectd

First of all

enter you ip and hostname in /etc/hosts

[root@nagiosclient ~]# vi /etc/hosts

10.0.0.74 nagiosclient

 

install epel repo

[root@nagiosclient ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel                                   -release-6-8.noarch.rpm

install collectd with some other packages including httpd package

[root@nagiosclient ~]# yum install -y collectd colllect-rrdtool rrdtool collectd-web httpd

configuration file is /etc/collectd.conf

configuration file for the collectd element of the webserver

/etc/httpd/conf.d/collectd.conf

change the allowed hosts to all as below to access web collectd from another server or workstation

# Configuration for collectd.

ScriptAlias /collectd/bin/ /usr/share/collectd/collection3/bin/
Alias /collectd/ /usr/share/collectd/collection3/


    AddHandler cgi-script .cgi
    DirectoryIndex bin/index.cgi
    #Order Deny,Allow
    Allow from all

 

Start the services

[root@nagiosclient ~]# /etc/init.d/httpd start
Starting httpd:                                            [  OK  ]
[root@nagiosclient ~]# /etc/init.d/collectd start
Starting collectd:                                         [  OK  ]

Now got to web browser of any system in LAN and put

http://ipaddress/collectd/

http://10.0.0.74/collectd/

NOTE:  dont forget the / at the end

collectd

 

 

 

 

 

 

 

 

 

 

 

 

 

If you want to monitor more then just uncomment plugins in /etc/collectd.conf

collectd-plugins

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Now Just restart the service

[root@nagiosclient ~]# service collectd restart
Stopping collectd: [ OK ]

 

Leave a Reply