Line 36: |
Line 36: |
| | | |
| | | |
− | ===== NRPE configuration =====
| + | ==== NRPE configuration ==== |
| Create a the NRPE configuration file /etc/nagios/nrpe.cfg. Use the nrpe.cfg provided by this conrib as a starting point. | | Create a the NRPE configuration file /etc/nagios/nrpe.cfg. Use the nrpe.cfg provided by this conrib as a starting point. |
| Add the IP address of your central Nagios server to the variable ''allowed_hosts''. Use the local IP of the central Nagios server if you check the server over the local network or over a VPN, otherwise use the WAN IP. | | Add the IP address of your central Nagios server to the variable ''allowed_hosts''. Use the local IP of the central Nagios server if you check the server over the local network or over a VPN, otherwise use the WAN IP. |
Line 61: |
Line 61: |
| Test the installation by running this command on the central Nagios server:<br> | | Test the installation by running this command on the central Nagios server:<br> |
| /usr/lib/nagios/plugins/check_nrpe -H IPADDRESS | | /usr/lib/nagios/plugins/check_nrpe -H IPADDRESS |
| + | |
| + | or if you have a 64 bit architecture |
| + | |
| + | /usr/lib64/nagios/plugins/check_nrpe -H IPADDRESS |
| + | |
| Expected result: | | Expected result: |
| NRPE v2.5.1 | | NRPE v2.5.1 |
| + | |
| + | ===== SSL issue ===== |
| + | |
| + | You may get the following error : |
| + | |
| + | CHECK_NRPE: Error - Could not complete SSL handshake. |
| + | |
| + | Edit /etc/nagios/nrpe.cfg and add your Nagios server IP |
| + | |
| + | e.g. (beware spaces) |
| + | |
| + | allowed_hosts=127.0.0.1,192.168.1.1,192.168.99/24 |
| + | |
| + | === Koozali v9 === |
| + | |
| + | I used this as a guide when installing nrpe on v9. I had to do a few extra steps as follows: |
| + | |
| + | Add the EPEL repo https://wiki.contribs.org/Epel |
| + | |
| + | yum --enablerepo=epel install nrpe |
| + | |
| + | Create new template: |
| + | mcedit /etc/e-smith/templates/etc/hosts.allow/nrpe |
| + | |
| + | Add the following and save: |
| + | |
| + | { |
| + | $DB->hosts_allow_spec('nrpe'); |
| + | } |
| + | |
| + | Create the DB entry: |
| + | |
| + | config set nrpe service HostsAllow "127.0.0.1 NAGIOS_CENTRAL_SERVER_IP" status enabled |
| + | |
| + | Expand the template: |
| + | |
| + | expand-template /etc/hosts.allow |
| + | |
| + | Add your Nagios server IP to /etc/nagios/nrpe.cfg as above. |
| + | |
| + | /etc/rc.d/init.d/nrpe restart |
| + | |
| + | Make a softlink: |
| + | |
| + | ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S92nrpe |
| + | |
| + | Upgrade/reboot: |
| + | |
| + | signal-event post-upgrade;signal-event reboot |
| | | |
| === Uninstall === | | === Uninstall === |
Line 80: |
Line 134: |
| smeserver-nagios-plugins-mysql | | smeserver-nagios-plugins-mysql |
| ---- | | ---- |
− | [[Category: Contrib]] | + | [[Category: Deprecated_Contrib]] |
| + | [[Category: Nagios]] |
| [[Category: Webapps]] | | [[Category: Webapps]] |
| [[Category: Administration:Monitoring]] | | [[Category: Administration:Monitoring]] |