I have the following problem.
I can´t seem to connect Nagios to the NRPE installed on the computers I want to monitor.
They don't appear on the Nagios Web interface, when I use the command "/usr/local/nagios/libexec/check_nrpe -H nagios_server -c check_users" on the remote machines I get the message "CHECK_NRPE: Error - Could not complete SSL handshake" and when I check the /var/log/messages here's what I get:
Code: Select all
Sep 27 18:11:59 SDTSMC xinetd[5405]: FAIL: nrpe address from=128.1.5.20
Sep 27 18:11:59 SDTSMC xinetd[3428]: START: nrpe pid=5405 from=128.1.5.20
Sep 27 18:11:59 SDTSMC xinetd[3428]: EXIT: nrpe status=0 pid=5405 duration=0(sec)
- I have a virtual RHEL 5.5 on which I've installed Nagios
- I've followed the "Fedora quick start Installation guide"
- I've installed NRPE + Plugins (with option of --enable-ssl on the ./configure for the both) On two workstation, one virtual RHEL 5.5 and a physical Openfiler.
- to register the hosts on Nagios heres the file I'm using:
Code: Select all
define host{
name 128.1.5.20 ; IP
use generic-host ; This template inherits other values from the generic-host template
check_period 24x7 ; By default, Linux hosts are checked round the clock
check_interval 5 ; Actively check the host every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 10 ; Check each Linux host 10 times (max)
check_command check-host-alive ; Default command to check Linux hosts
notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day
; Note that the notification_period variable is being overridden from
; the value that is inherited from the generic-host template!
notification_interval 120 ; Resend notifications every 2 hours
notification_options d,u,r ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
define host{
name 128.1.0.19 ; IP
use generic-host ; This template inherits other values from the generic-host template
check_period 24x7 ; By default, Linux hosts are checked round the clock
check_interval 5 ; Actively check the host every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 10 ; Check each Linux host 10 times (max)
check_command check-host-alive ; Default command to check Linux hosts
notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day
; Note that the notification_period variable is being overridden from
; the value that is inherited from the generic-host template!
notification_interval 120 ; Resend notifications every 2 hours
notification_options d,u,r ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
- plugin version - 1.4.15
- nrpe - 2.12
- Core - 3.2.3
- file permissions on the /usr/local/nagios - nagios:nagios
- used the command: "/usr/local/nagios/libexec/check_nrpe -H localhost -c check_users" and it works fine
- the command "netstat -at | grep nrpe" returns "tcp 0 0 *:nrpe *:* LISTEN", so it's fine on both clients
- when I make "iptables -L" I only get the headers with no content, so I assume they aren't being used
I don't know what else to do.
Can anyone help me solve this?
Thank you in advance
Jeraisel