Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu
Showing posts with label Monitoring-Tools. Show all posts
Showing posts with label Monitoring-Tools. Show all posts

Saturday, 23 July 2016

How To Install & Configure Monitorix on CentOS/RHEL 6x

Install & Configure Monitorix on CentOS/RHEL 6x

About Monitorix:

-- Monitorix is a free, open source, lightweight system monitoring tool designed to monitor as many services and system resources as possible. It has been created to be used under production Linux/UNIX servers, but due to its simplicity and small size can be used on embedded devices as well.

Step: 1. Bind Host File :

# vi /etc/hosts

10.100.100.100    monitor.domain.com    monitor

-- Save & Quit (:wq)

Step: 2. Stop Firewall & Disable Selinux :

# service iptables stop
# chkconfig iptables off

# vi /etc/sysconfig/selinux

SELINUX=enforing to disabled

-- Save & Quit (:wq)

Step: 3. Reboot the System :

# init 6

or

# reboot

Step: 4. Install EPEL Repository :

# yum -y install epel-release

Step: 5. Install Apache Server :

# yum -y install httpd httpd-devel

Step: 6. Install  the Required Packages :

# yum -y install rrdtool perl rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite \
   perl-CGI perl-DBI  perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple \
   perl-IO-Socket-SSL wget

Step: 7. Download & Install the Monitorix Package :

# cd /mnt
# wget http://www.monitorix.org/monitorix-3.8.1-1.noarch.rpm
# yum -y install monitorix-3.8.1-1.noarch.rpm

Step: 8. Start Apache & Monitorix Service :

# service httpd restart
# service monitorix start

# chkconfig httpd on
# chkconfig monitorix on

Step: 9. Edit the Monitorix Configure file :

# vi /etc/httpd/conf.d/monitorix.conf

Alias /monitorix /usr/share/monitorix
ScriptAlias /monitorix-cgi /usr/share/monitorix/cgi-bin

<Directory /usr/share/monitorix/cgi/>
DirectoryIndex monitorix.cgi
Options ExecCGI
order deny,allow
deny from all
allow from all       # Alllow connect from the outside
</Directory>

# Apache rules to restrict access to Monitorix:
# Don’t forget to add <username> in .htpasswd with the 'htpasswd' command.

# Uncomment these lines
<Directory "/usr/share/monitorix">
Options Indexes Includes FollowSymLinks
Order Deny,Allow
Deny from All
allow from all        # Alllow connect from the outside
AllowOverride None
AuthUserFile /etc/httpd/conf/.htpasswd
AuthGroupFile /dev/null
AuthName "Monitorix: Restricted Access..., sorry."

AuthType Basic
Require user <username>
Satisfy Any
</Directory>

-- Save & Quit (:wq)

Step: 10. Set Password For Monitorix Web Panel :

# htpasswd -cm /etc/httpd/conf/.htpasswd monitoradmin
Enter the Password: Password@123

Step: 11. Retart the Apache Service :

# service httpd restart

Step: 12. Connect Monitorix via Web Browser :

http://10.100.100.100/monitorix
User: monitoradmin
Pass: Password@123

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog

Monday, 20 June 2016

How To Install & Configure Netdata on CentOS/RHEL 6x

How To Install & Configure Netdata on CentOS/RHEL 6x

Q. What is Netdata?

-- Netdata is a extremely optimized Linux utility that provides real-time (per second) performance monitoring for Linux systems, applications, SNMP devices, etc. and shows full interactive charts that absolutely render all collected values over the web browser to analyze them.

Step: 1. Bind Hosts File :

# vi /etc/hosts

10.100.99.247    ser1.domain.com    ser1

-- Save & Quit (:wq)

Step: 2. Stop the IPTables & Disable Selinux :

# service iptables stop
# chkconfig iptables off

# vi /etc/sysconfig/selinux

SELINUX=disabled

-- Save & Quit (:wq)

Step: 3. Update the Date & Time on the Server :

# yum -y install ntp
# service ntpd restart
# ntpdate pool.ntp.org
# chkconfig ntpd on
# init 6

Step: 4. Install Netdata Dependencies :

# yum -y install zlib-devel gcc gcc-c++ make git autoconf autogen automake pkgconfig

Step: 5. Clone the Netdata Repository from Git Repository & Run Netdata Installer Script :

# cd /mnt
# git clone https://github.com/firehol/netdata.git --depth=1
# cd netdata
# ./netdata-installer.sh

Press ENTER to build and install netdata to your system >

Step: 6. Start Netdata by executing the following Command & You can also Stop Netdata by Terminating it’s Process with killall Command :

# /usr/sbin/netdata
# killall netdata

Note: Netdata saves on exit its round robbin Database information under /var/cache/netdata file, so that when you start again Netdata, it will Continue from where it was stopped last time.

Step: 7. Updating Netdata & Restart the Netdata and Check on Browser :

# cd /mnt/netdata
# git pull
# ./netdata-installer.sh

http://IP-Address:19999

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog

Copyright © 2016 Kousik Chatterjee's Blog