no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | tech:linux:install_nagios_plugin_nrpe_redhat [2014/11/15 15:13] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Install Nagios Plugin and NRPE on Redhat ====== | ||
| + | Prerequisite install | ||
| + | * xinetd | ||
| + | * openssl-devel | ||
| + | |||
| + | Redhat 3rd party libraries if added to yum can let you install nrpe via yum. However, below is an explanation of now to compile this locally. | ||
| + | |||
| + | ===== Download and Extract files ===== | ||
| + | Download and copy files to /tmp | ||
| + | * nrpe-2.15.tar.gz | ||
| + | * nagios-plugins-1.5.tar.gz | ||
| + | Extract files | ||
| + | <code bash> | ||
| + | cd /tmp | ||
| + | tar zxvf nrpe-2.15.tar.gz | ||
| + | tar zxvf nagios-plugins-1.5.tar.gz | ||
| + | </ | ||
| + | |||
| + | ===== Create nagios Account ===== | ||
| + | < | ||
| + | groupadd nagios | ||
| + | useradd -d / | ||
| + | date|md5sum|cut -b " | ||
| + | id nagios | ||
| + | </ | ||
| + | |||
| + | ===== Install the Nagios Plugins ===== | ||
| + | < | ||
| + | cd nagios-plugins-1.5 | ||
| + | ./configure | ||
| + | make | ||
| + | make install | ||
| + | chown -R nagios: | ||
| + | </ | ||
| + | |||
| + | ===== Install the NRPE daemon ===== | ||
| + | < | ||
| + | cd nrpe-2.15 | ||
| + | ./configure | ||
| + | make all | ||
| + | make install-plugin | ||
| + | make install-daemon | ||
| + | make install-daemon-config | ||
| + | make install-xinetd | ||
| + | |||
| + | chown -R nagios: | ||
| + | </ | ||
| + | |||
| + | Update nagios server IP address here. Included additional IP separated by spaces. | ||
| + | < | ||
| + | grep only / | ||
| + | </ | ||
| + | |||
| + | Use the following example to replace easily! | ||
| + | < | ||
| + | sed -i ' | ||
| + | </ | ||
| + | |||
| + | Add the NRPE daemon to services | ||
| + | < | ||
| + | echo " | ||
| + | service xinetd restart | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Test NRPE daemon ===== | ||
| + | Check for Listening port | ||
| + | < | ||
| + | netstat -at | grep nrpe | ||
| + | </ | ||
| + | should have output as | ||
| + | < | ||
| + | tcp 0 0 *: | ||
| + | </ | ||
| + | |||
| + | Run the call to service | ||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | Should return **NRPE v2.15** | ||
| + | |||
| + | ===== Additional plugins ===== | ||
| + | Copy any additional plugins to ''/ | ||
| + | |||
| + | |||
| + | ===== File locations ===== | ||
| + | Nagios Core, Nagios NRPE Deamon and Nagios Plugin Locations | ||
| + | |||
| + | ==== Compiled Version ==== | ||
| + | === Plugins (executables) === | ||
| + | / | ||
| + | |||
| + | === NRPE Deamon config file (settings) === | ||
| + | / | ||
| + | |||
| + | === NRPE Config file (commands) === | ||
| + | / | ||
| + | |||
| + | ==== Ubuntu ==== | ||
| + | === Core Nagios Monitoring config directory (settings) === | ||
| + | / | ||
| + | |||
| + | === Plugin Location (executables) === | ||
| + | / | ||
| + | |||
| + | ==== Redhat ==== | ||
| + | === NRPE Config file (commands) === | ||
| + | / | ||
| + | === Plugin Location === | ||
| + | / | ||
| + | |||
| + | |||
| + | ===== Related ===== | ||
| + | Install '' | ||
| + | |||
| + | [[http:// | ||
| + | |||