About Me

My photo
Kalyan Kumar Pasupuleti B-Tech(Information Technology). • RedHat Certified Engineer(RHCE) • Directory Services and Authentication Certificate of Expertise(LDAP) • Red Hat SELinux Policy Administration Certificate of Expertise(SELinux) • Network Services Security Certificate of Expertise (Network Services) • RedHat Certified Virtualization Administrator(RHCVA) • Red Hat Certified Security Specialist (RHCSS) Working as Cloud DevOps engineer

Sunday, January 19, 2014

How to install NRPE agent(Using Yum) on a Linux machine?

Download and install repo packages:

# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 

Now start the procedure:

  1. Install the below packages
    • # yum install nrpe nagios nagios-plugins-all
    • # chkconfig nrpe on
  2. The nrpe configuration file is : /etc/nagios/nrpe.cfg
  3. Make the necessary changes to the nrpe config file, so that Nagios server can communicate to the client machine.
    • # vim /etc/nagios/nrpe.cfg
    • allowed_hosts=,<Nagios server IP address>
  4. Also, define the below commands in the same nrpe.cfg file as shown below. So that you can use them while adding these to Nagios server for monitoring:
    • command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w 10% -c 5% --local -X tmpfs -X none
    • command[check_memory]=/usr/local/sbin/check_memory.pl -C -u -w 90 -c 95
  5. Save and exit
  6. Restart nrpe service after the modifications done to the nrpe.cfg file.
    • # /etc/init.d/nrpe restart
  7. Check whether the port 5666 is listening on localhost (the machine in which NRPE agent is installed) or not.
    • # netstat -an | grep 5666
    • tcp 0 0* LISTEN
  8. Check whether you are able to telnet to port 5666 from Nagios server or not
    • # telnet <Client IP> 5666
  9. If telnet is not listening to port 5666 from Nagios server, then enable the port by writing below iptable rule:
    • Stop iptables: # /etc/init.d/iptables stop
    • Paste the below rule in the iptables file (# vi /etc/sysconfig/iptables)
    • -A INPUT -m state --state NEW -m tcp -p tcp --dport 5666 -j ACCEPT
    • Save and exit.
    • Start iptables: /etc/init.d/iptables start
  10. Now check whether you are able to telnet to port 5666 from Nagios server or not
    • # telnet <Client IP> 5666

1 comment:

  1. Sir, Can you please post the article about Jboss configurations in cluster method in detailed....