Page 2 of 3

Re: issue 2 check remote server free disk space using check_

PostPosted: Thu Apr 05, 2018 11:33 am
by scottwilkerson
the nrpe.cfg is installed on the remote system.

scottwilkerson wrote:How did you install NRPE on each of these machines?

Re: issue 2 check remote server free disk space using check_

PostPosted: Thu Apr 12, 2018 5:13 am
by debdutta
Hi,
Can any one help me to Prepare & configure / install nrpe.cfg .
Details are in my last mail.

Appreciate your all extended help.

Re: issue 2 check remote server free disk space using check_

PostPosted: Thu Apr 12, 2018 7:29 am
by scottwilkerson
debdutta wrote:Hi,
Can any one help me to Prepare & configure / install nrpe.cfg .
Details are in my last mail.

Appreciate your all extended help.


I cannot do it for you but I can point you to the documentation.


This is our doc on installing NRPE on various systems
https://support.nagios.com/kb/article.php?id=515

Re: issue 2 check remote server free disk space using check_

PostPosted: Mon Apr 16, 2018 8:38 am
by debdutta
Hi,
Waiting for someone's guidance to Prepare & configure / install nrpe.cfg .
Details are in my earlier post.

Appreciate your all extended help.

Re: issue 2 check remote server free disk space using check_

PostPosted: Mon Apr 16, 2018 8:41 am
by scottwilkerson
debdutta wrote:Waiting for someone's guidance to Prepare & configure / install nrpe.cfg .


This was the guidance:
scottwilkerson wrote:This is our doc on installing NRPE on various systems
https://support.nagios.com/kb/article.php?id=515


That document outlines how to install NRPE on the following Operating systems

Red Hat Enterprise Linux (RHEL)
CentOS
Oracle Linux
Ubuntu
SUSE SLES | openSUSE Leap
Debian
Raspbian
Fedora
Arch Linux
Gentoo
FreeBSD
Solaris
Apple OS X

Re: issue 2 check remote server free disk space using check_

PostPosted: Thu Apr 19, 2018 8:59 am
by debdutta
scottwilkerson wrote:How did you install NRPE on each of these machines? Are you sure it is running? Did you add the other servers IP to the allowed IP list ?

Can you send up the nrpe.cfg and and other .cfg files included in it


Hi Scott,
Recently I further install the NRPE plugin by root user in one of our nagios monitoring server, For installation I used below step ---
1. create 'nrpe' folder under /tmp
2. execute "yum install -y gcc glibc glibc-common openssl openssl-devel perl wget" command from /tmp/nrpe
3. Download plugin using "wget --no-check-certificate -O nrpe.tar.gz https://github.com/NagiosEnterprises/nr ... 2.1.tar.gz" and unzip under "/tmp/nrpe/nrpe-321"
4. Execute below commands
cd /tmp/nrpe/nrpe-321
./configure
make check_nrpe
make install-plugin


After that i tried to find 'nrpe.cfg' under "/usr/local/nagios/" directory, including all sub-directory under that however I could not find that file.

After that I tried below command however success message not came, below is the command & output of the same ---
./check_nrpe -H test.com -c check_disk -a '-w 20% -c 10% -p /var'

connect to address xx.yyy.zzz.*** port 5666: No route to host
connect to host test.com port 5666: No route to host


I have below query ---
i) under which directory nrpe.cfg file should exists after installation ?
ii) Is it required that I have to install Nagios & NRPE pluggin in each of the server for which I want to check the disk space / CPU & memory ??
iii) where I have to update IP address for allowed IP List ?
iV) How can i check that NRPE plugin is successfully installed and running ?

Appreciate all your extended help.

Re: issue 2 check remote server free disk space using check_

PostPosted: Thu Apr 19, 2018 9:30 am
by scottwilkerson
debdutta wrote:i) under which directory nrpe.cfg file should exists after installation ?

/usr/local/nagios/etc/nrpe.cfg but only only if you run make all you didn't make nrpe, just check_nrpe

debdutta wrote:ii) Is it required that I have to install Nagios & NRPE pluggin in each of the server for which I want to check the disk space / CPU & memory ??

Yes, it is required you install nrpe and the plugins you need.

debdutta wrote:iii) where I have to update IP address for allowed IP List ?

/usr/local/nagios/etc/nrpe.cfg
Code: Select all
allowed_hosts=


debdutta wrote:iV) How can i check that NRPE plugin is successfully installed and running ?

your test above looks good provided you have a check_disk command specified in the nrpe.cfg on test.com and also have your nagios servers IP in the allowed_hosts of that file

Re: issue 2 check remote server free disk space using check_

PostPosted: Mon Apr 23, 2018 5:25 am
by debdutta
Hi Scott,
As per your suggestion (
"/usr/local/nagios/etc/nrpe.cfg but only only if you run make all you didn't make nrpe, just check_nrpe"
), reloaded the nrpe_plugin using below command, however still I could not find the nrpe.cfg file for edit --
./configure
make all
make install-plugin


I checked, Under /usr/local/nagios/etc, I have below 3 .cfg files
cgi.cfg nagios.cfg resource.cfg

Under /usr/local/nagios directory I have below 19 .cfg files ----
./etc/cgi.cfg
./etc/bncom/objects/nyhosts/QA2Hosts.cfg
./etc/bncom/objects/bnconfigs/bnhostgroups.cfg
./etc/bncom/objects/bnconfigs/bncontacts.cfg
./etc/bncom/objects/bnconfigs/bnservices.cfg
./etc/bncom/objects/bnconfigs/bntimeperiods.cfg
./etc/bncom/objects/bnconfigs/bncommands.cfg
./etc/bncom/objects/bnconfigs/bntemplates.cfg
./etc/bncom/objects/urlchecks/QA2HostChecks.cfg
./etc/objects/commands.cfg
./etc/objects/windows.cfg
./etc/objects/contacts.cfg
./etc/objects/timeperiods.cfg
./etc/objects/printer.cfg
./etc/objects/localhost.cfg
./etc/objects/templates.cfg
./etc/objects/switch.cfg
./etc/resource.cfg
./etc/nagios.cfg


Let me know where I am missing .

Appreciate all your extended help.

Re: issue 2 check remote server free disk space using check_

PostPosted: Mon Apr 23, 2018 9:13 am
by scottwilkerson
You need to go through all the steps in the doc for your particular OS, it appears you are picking and choosing a few
https://support.nagios.com/kb/article.php?id=515

Re: issue 2 check remote server free disk space using check_

PostPosted: Fri May 25, 2018 6:25 am
by debdutta
Hi scottwilkerson/Moderator.
Thanks for your all help.
I have one request, if possible please delete all post related to this request i.e "issue 2 check remote server free disk space using check_nrpe", because I do not want to public the host name which was mentioned in the post against below dated ---
Fri Mar 30, 2018 12:43 pm
Apr 02, 2018 10:14 am
Wed Apr 04, 2018 7:43 am


If it is not possible to delete all post related to above request then atleast delete post against above 3 mentioned dates.

Thanks for your help once more.