Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
vi-admin@tgkw002:~/tmp/nagios-plugins-2.1.2> ls -la /usr/local/nagios/libexec
total 148
drwxrwxr-x 2 nagios nagios 4096 Aug 16 21:27 .
drwxr-xr-x 6 root root 4096 Aug 16 21:27 ..
-rwxrwxr-x 1 nagios nagios 137337 Aug 16 21:27 check_nrpe
vi-admin@tgkw002:~/tmp/nagios-plugins-2.1.2>
where did they go?
How did you install Nagios plugins? What is the document/guide/tutorial that you followed?
On my Cento Os 7 it is working and do not have plugins installed there just the NRPE client.
You probably have these plugins on your system if you installed NRPE from repo. It is different when you compile NRPE from source. Then you will need to install nagios plugins separately.
Keep in mind that even if you had nagios plugins installed, your checks would fail unless you make sure that the commands in nrpe.cfg include the correct path to the nagios plugins.
Be sure to check out our Knowledgebase for helpful articles and solutions!
The NRPE check should look for the command and file on the Nagios Server not on the client servers correct?
No. NRPE will look for the commands referenced on the client machine. When you run check_nrpe -H yourhost -c commandhere, it's looking for a reference to commandhere in your /usr/local/nagios/etc/nrpe.cfg file like this -
You need to have /usr/local/nagios/libexec/check_load on your system. NSClient++ has some NRPE commands built in, which is why there is no need to define them.
kwhogster wrote:So on my cent os 7 which is working I should find that folder correct?
Please see the previous response.
You probably have these plugins on your system if you installed NRPE from repo. It is different when you compile NRPE from source. Then you will need to install nagios plugins separately.
nagios@tgcs017:/usr/local/nagios/etc/objects$ /usr/lib/nagios/plugins/check_nrpe -H 10.2.8.7 -t 30 -c check_mem -a ' -w 80% -c 90%'
NRPE: Command 'check_mem' not defined
Let's clarify this. You are running the above command on your nagios server against the VMA host (10.2.8.7). This means that the "check_mem" command must be defined in the nrpe.cfg file on the client AND the "check_mem.sh" must exist in the plugins directory on the client...
Run the following commands and show the output:
On the nagios server:
Code: Select all/usr/lib/nagios/plugins/check_nrpe -H 10.2.8.7 -t 30 -c check_users
On the client (10.2.8.7):
Code: Select allls -la /usr/local/nagios/libexec/
Need example of the command to put in nrpe.cfg
I will try to get the check_mem.pl in the folder too
My bad - just noticed that your actual plugin is "check_mem.sh", not "check_mem", so you will need to modify the command on the client to look like this: