LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Nagios NRPE DISK CRITICAL - is not accessible: No such file or directory (http://www.linuxquestions.org/questions/linux-general-1/nagios-nrpe-disk-critical-is-not-accessible-no-such-file-or-directory-4175445372/)

deibertine 01-13-2013 03:29 AM

Nagios NRPE DISK CRITICAL - is not accessible: No such file or directory
 
Hi there - I'm trying to setup my Nagios to monitor via nrpe in my remote linux machine.

Here's my nagios service definition:
define service{
use local-service ; Name of service template to use
host_name remotelinux
service_description sd1 status
check_command check_nrpe!check_sd1
}

Here's my nrpe command definition:
command[check_sd1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sd1

Error I'm getting in Nagios portal:
CHECK_NRPE: Error - Could not complete SSL handshake.

Please advise.
Cheers - DB

sag47 01-13-2013 09:38 PM

A quick google search shows that you have to set the IP of the Nagios server connecting to nrpe by modifying the "allowed_hosts" section of nrpe.cfg. Have you done that? If so, what does dmesg say? Have you tried running the nrpe check command from the terminal directly?

Code:

/usr/local/nagios/libexec/check_nrpe -H remotehostIP
There's a sample for how you could do it.


All times are GMT -5. The time now is 06:17 PM.