Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Configuration for NRPE on ITANIUM platform for Airtel NagiosXI project
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[category:Airtel Nagios]] [[category:Nagios]] ==Steps To install NRPE on Hp Unix on ITANIUM (IA) Platform == == OBJECTIVE == To Install the NRPE on the Hp Unix Server. Procedure for Installing NRPE on the server. ==''Procedure for Installing NRPE on the Server.''== # Upload and Install the Depot File. # Check NRPE Communication and Port Status. # Configuring nrpe.cfg file. ==''Upload and Install the PKG''== # Upload the nrpe-2.12.depot file to the server in the /tmp directory. # Install the depot file on the server by the command. <nowiki># swinstall βs <full path of the depot file> (swinstall βs /tmp/nrpe-2.12.depot)</nowiki> # On successful installation of the depot file we will get the folder /opt/nrpe. # Inside the /opt/nrpe there will be three folders bin, etc, libexec. # Go inside bin folder and run the file configure.sh # Run the file configure.sh ==''Check NRPE Communication and Port Status''== # After running the file the service of nrpe will be started on the server # Check the nrpe service by command netstat βa | grep nrpe # Output will be ο tcp 0 0 <nowiki>*.nrpe </nowiki><nowiki>*.* </nowiki>LISTEN # Also check the nrpe service entry inside the file /etc/inetd.conf at the bottom. # Go to folder /opt/nrpe/libexec and run the file. /check_nrpe βH localhost it will show you the version of the nrpe it should be βNRPE v2.12β. # Inside libexec folder there will be generic plugins for the nagios that we can use while configuring the different services. # <nowiki>Now go to nagios server 172.30.1.24 and go inside the folder /usr/local/nagios/libexec and run the command. /check_nrpe βH <client ip> this will show the nrpe version like NRPE v2.12 so it means we are able to communicate through nrpe from nagios server to the client.</nowiki> # If we are not able to communicate through nagios server to the client then there is some issue. Check port 5666 should be open and it should not be blocked by the firewalls. # Telnet on port 5666 through nagios server for the confirmation if port is opened or not. # We can also check the port communication from the nagios server by the command <nowiki># nc βz <client ip> <port no ></nowiki> ==''Configuring nrpe.cfg file.''== # After Installing the NRPE services on HP UNIX Server and checking the services of nrpe are running fine. # Go to location /usr/local/nagios/etc at this location main file for NRPE is located (nrpe.cfg) in which all the services will be defined which we want to monitor for the particular server. # Open the file nrpe.cfg and do not make any changes in the beginning of the file go to line number 197 where a sample is shown how we can monitor the different services (as shown below). We can change and modify the commands defined here according to our requirement. [[Image:nrpeia-1.png]] # Below shown is the changed nrpe.cfg where the different services are defined that we have to monitor for the specific server through the nagios <center>[[Image:nrpeia-2.png]]</center> = EXPLANATION OF THE COMMANDS DEFINED IN NRPE.CFG = # check_hda1, check_cpu are the command name that we have defined to monitor the load of the server and swap memory of the server respectively, we can write any command name according to our requirement. # /opt/nrpe/libexec is the path where we have kept the plugins and the shell scripts that we execute to bring the output of different services from the servers. # check_swap.sh, check_disk check_cron.sh etc is name of the plugins and shell script that we have used for a specific service. # βw 40% defines the warning level for a service and βc 20% defines the critical level for a service. # βp /, /var define the partition that we want to monitor for the server (/ root partition, /var Var Partition) we can only monitor the partition that we can see through the mount command or bdf. # For monitoring any of the process or the daemons we do not have to give the critical or the warning level, just copy the shell script for the daemon/process as shown above ( check_ssh for ssh process, check_named for named process, check_cron for cron process) basic process scripts are already present on the location /opt/nrpe/libexec as shown below. <center>[[Image:nrpeia-3.png]]</center> # For the netstat we have to define the device name like lan0 (with option βd) for which we have to monitor the Network Input Output. We can get the device name from the command (# netstat βi) as shown below. [[Image:nrpeia-4.png]] # <nowiki>For log monitoring we have to define the log file where we are getting the logs with the option βF < log file name with location like /var/adm/syslog/syslog.log>, with </nowiki>option βO we have to define a file where the last location of the log file scanned will be stored, with the option βq we have to define the pattern that we want to search from the log file as shown below. [[Image:nrpeia-5.png]] # After defining all the services save the file and the service of nrpe will be update automatically. # After that go to location /usr/local/nagios/libexec and run the command check_nrpe to see the output of the command that we have defined in nrpe.cfg through the nrpe if it is working fine or not, run the command as shown. # . /check_nrpe βH localhost βc check_load (-H localhost to run locally βc check_load is the command name that we have defined in the nrpe.cfg file), output will be as shown below. <center>[[Image:nrpeia-6.png]]</center> # This output shows that we are able to get the output from the nrpe locally from the client. We can check all the services same way by changing the command name and see if it is working or not
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)