Nagios Client installation in Redhat Linux
Nagios Client on Remote Linux Host
Step 1: Install Required Dependencies
# yum install -y gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel
Step 2: Create Nagios User
# useradd nagios
Step 3: Install the Nagios Plugins
# mkdir /root/nagios && cd /root/nagios
# wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
# tar -xvzf nagios-plugins-2.0.3.tar.gz
# cd nagios-plugins-2.0.3
# ./configure && make && make install
# chown nagios.nagios /usr/local/nagios
# chown -R nagios.nagios /usr/local/nagios/libexec
# yum install xinetd
# cd /root/nagios
# wget http://liquidtelecom.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
# tar xzf nrpe-2.15.tar.gz
# cd nrpe-2.15
# ./configure && make all
# make install-plugin
# make install-daemon && make install-daemon-config
# make install-xinetd
# vim /etc/xinetd.d/nrpe
only_from = 127.0.0.1 localhost <nagios_ip_address>
# vim /etc/services
nrpe 5666/tcp NRPE
# service xinetd restart
# netstat -at | grep nrpe
# /usr/local/nagios/libexec/check_nrpe -H localhost
# vi /usr/local/nagios/etc/nrpe.cfg
Step 1: Install Required Dependencies
# yum install -y gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel
Step 2: Create Nagios User
# useradd nagios
Step 3: Install the Nagios Plugins
# mkdir /root/nagios && cd /root/nagios
# wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
# tar -xvzf nagios-plugins-2.0.3.tar.gz
# cd nagios-plugins-2.0.3
# ./configure && make && make install
# chown nagios.nagios /usr/local/nagios
# chown -R nagios.nagios /usr/local/nagios/libexec
# yum install xinetd
# cd /root/nagios
# wget http://liquidtelecom.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
# tar xzf nrpe-2.15.tar.gz
# cd nrpe-2.15
# ./configure && make all
# make install-plugin
# make install-daemon && make install-daemon-config
# make install-xinetd
# vim /etc/xinetd.d/nrpe
only_from = 127.0.0.1 localhost <nagios_ip_address>
# vim /etc/services
nrpe 5666/tcp NRPE
# service xinetd restart
# netstat -at | grep nrpe
# /usr/local/nagios/libexec/check_nrpe -H localhost
# vi /usr/local/nagios/etc/nrpe.cfg
Comments
Post a Comment
Thank you for visiting my blog.