issue 2 check remote server free disk space using check_nrpe

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

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

Postby scottwilkerson » Thu Apr 05, 2018 11:33 am

the nrpe.cfg is installed on the remote system.

scottwilkerson wrote:How did you install NRPE on each of these machines?
User avatar
scottwilkerson
CTO
 
Posts: 8921
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Postby debdutta » Thu Apr 12, 2018 5:13 am

Hi,
Can any one help me to Prepare & configure / install nrpe.cfg .
Details are in my last mail.

Appreciate your all extended help.
debdutta
 
Posts: 14
Joined: Thu Feb 22, 2018 7:57 am

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

Postby scottwilkerson » Thu Apr 12, 2018 7:29 am

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
User avatar
scottwilkerson
CTO
 
Posts: 8921
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Postby debdutta » Mon Apr 16, 2018 8:38 am

Hi,
Waiting for someone's guidance to Prepare & configure / install nrpe.cfg .
Details are in my earlier post.

Appreciate your all extended help.
debdutta
 
Posts: 14
Joined: Thu Feb 22, 2018 7:57 am

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

Postby scottwilkerson » Mon Apr 16, 2018 8:41 am

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
User avatar
scottwilkerson
CTO
 
Posts: 8921
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Postby debdutta » Thu Apr 19, 2018 8:59 am

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.
debdutta
 
Posts: 14
Joined: Thu Feb 22, 2018 7:57 am

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

Postby scottwilkerson » Thu Apr 19, 2018 9:30 am

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
User avatar
scottwilkerson
CTO
 
Posts: 8921
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Previous

Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 1 guest