Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
8Activity
0 of .
Results for:
No results containing your search query
P. 1
Monitor Remote Linux Server Using Nagios NRPE _ CentOS _ Linux Tutorial

Monitor Remote Linux Server Using Nagios NRPE _ CentOS _ Linux Tutorial

Ratings: (0)|Views: 724|Likes:
Monitoring Remote Linux server
Monitoring Remote Linux server

More info:

Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

01/14/2013

pdf

text

original

 
HomeTutorialsBeginnerTutorialAboutContactRSS FeedJune 24, 2009 | By Fabio Milano InCentOS,Linux, Nagios,Tutorial|
Scenario / Question:
How do I monitor a remote linux system using Nagios
Solution / Answer:
Use th NRPE daemon to execute Nagios plugins on the remote server and report back to the monitoring hostserver.
# useradd nagios# passwd nagios
Certified Cisco Training
CLP training Australia, Asia, India Contact Centre - Voice - Storage
www.housley.com.au
Monitor remote linux server using Nagios NRPE | CentOS | Linux Tutorialhttp://www.kernelhardware.org/nagios-nrpe-to-monitor-remote-linux-server/1 of 2011/27/2011 1:09 PM
 
# mkdir -p /opt/Nagios/Nagios_Plugins# cd /opt/Nagios/Nagios_Plugins
Save file to directory /opt/Nagioshttp://www.nagios.org/download/download.phpAs of this writing Nagios 3.0.6 (Stable) and Nagios Plugins 1.4.13 (Stable)Extract Files:
# tar xzf nagios-plugins-1.4.13.tar.gz# cd nagios-plugins-1.4.13
** You need the openssl-devel package installed to compile plugins with ssl support. **
# yum -y install openssl-devel
Instal Plugins:
# ./configure --with-nagios-user=nagios --with-nagios-group=nagios# make# make install
The permissions on the plugin directory and the plugins will need to be changed to nagios user 
# chown nagios.nagios /usr/local/nagios# chown -R nagios.nagios /usr/local/nagios/libexec
Package xinted is needed
# yum install xinetd# mkdir -p /opt/Nagios/Nagios_NRPE# cd /opt/Nagios/Nagios_NRPE
Save file to directory /opt/Nagioshttp://www.nagios.org/download/download.phpAs of this writing NRPE 2.12 (Stable)Extract the Files:
# tar -xzf nrpe-2.12.tar.gz# cd nrpe-2.12
Monitor remote linux server using Nagios NRPE | CentOS | Linux Tutorialhttp://www.kernelhardware.org/nagios-nrpe-to-monitor-remote-linux-server/2 of 2011/27/2011 1:09 PM
 
** You need the openssl-devel package installed to compile NRPE with ssl support. **
# yum -y install openssl-devel
Install NRPE:
# ./configureGeneral Options:-------------------------NRPE port: 5666NRPE user: nagiosNRPE group: nagiosNagios user: nagiosNagios group: nagios# make all# make install-plugin# make install-daemon# make install-daemon-config# make install-xinetd
Edit Xinetd NRPE entry:Add Nagios Monitoring server to the “only_from” directive
# vi /etc/xinetd.d/nrpeonly_from = 127.0.0.1 <nagios_ip_address>
Edit services file entry:Add entry for nrpe daemon
# vi /etc/servicesnrpe 5666/tcp # NRPE
Restart Xinetd and Set to start at boot:
# chkconfig xinetd on# service xinetd restart
Check NRPE daemon is running and listening on port 5666:
# netstat -at |grep nrpe
Monitor remote linux server using Nagios NRPE | CentOS | Linux Tutorialhttp://www.kernelhardware.org/nagios-nrpe-to-monitor-remote-linux-server/3 of 2011/27/2011 1:09 PM

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->