How To Test Nagios Remote NRPE Commands

Author: , September 27th, 2018

There are many things to configure in Nagios, especially when using custom check commands. Recently I needed to configure all of the Continuent Clustering Nagios checks. Once setup on the database side, I wanted to confirm that everything was working. Basics: Run a Remote NRPE Check To test a remote NRPE client command from a […]

How To Check for Infected Files Using Nagios Plugins

Author: , January 25th, 2016

This example shows how to look for infection patterns inside all .php files in a directory tree using find and grep called from a Nagios NRPE plugin written in PERL. You can adjust the behavior by modifying the script, described at the bottom of this post in the Advanced section. On the host to be […]

How To Install Nagios/NRPE on AWS

Author: , August 1st, 2011

1 2 3 4 5 yum install nrpe yum install nrpe-plugins yum install nrpe-plugins-all vim /etc/nagios/nrpe.cfg – comment out "allowed_hosts=127.0.0.1" service nrpe start yum install nrpe yum install nrpe-plugins yum install nrpe-plugins-all vim /etc/nagios/nrpe.cfg – comment out “allowed_hosts=127.0.0.1″ service nrpe start

How To Check Memory Utilization With Nagios And NRPE

Author: , December 30th, 2010

Proper Credit for this script is due to “jlightner”, user “MensaWater” on linuxquestions.org – reposted without permission (no contact info available). Original link: http://www.linuxquestions.org/questions/linux-software-2/nagios-check-ram-usage-on-remote-server-747531/ Create the script /usr/local/nagios/libexec/check_mem.sh as shown below (make sure you set execute perms):

How To Fix NRPE “Could not complete SSL handshake” Error

Author: , December 13th, 2010

If you get this obnoxious error fron Nagios/NRPE: “CHECK_NRPE: Error – Could not complete SSL handshake” Make sure to comment out the following line in /etc/nagios/nrpe.cfg: #allowed_hosts=127.0.0.1 Use this to test on MacOSX: /opt/local/libexec/nagios/check_nrpe -H {IP}

How to Control NRPE on MacOSX

Author: , April 4th, 2010

I installed NRPE via the MacPorts command-line tool as root. As a result, I am able to start and stop NRPE with the following commands: * To Start NRPE: /opt/local/share/nrpe/init-script start * To Stop NRPE: /opt/local/share/nrpe/init-script stop