System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

HPUX 11v3 - Nagios client configuration ( NRPE)

ALe_3
Frequent Advisor

HPUX 11v3 - Nagios client configuration ( NRPE)

Hi,

I am trying to configure the nrpe client on an Itanium installed with HP-UX 11v3.

I am using the package that comes with the installation of iexpress.

This is how it is configured:

- in /etc/services I added the following line
nrpe 5666/tcp #NAGIOS

- this is the netstat


netstat -an | grep 5666
tcp 0 0 *.5666 *.* LISTEN

- in /etc/inetd.conf  I added the following line
nrpe stream tcp nowait nagios /opt/iexpress/nagios/bin/nrpe -n -c /opt/iexpress/nagios/etc/nrpe.cfg -i (I disabled for the moment the SSL support to have a "simpler" debug)

In attachment the nrpe.conf.

- The permissions on the directory tree are the following
/opt ---> dr-xr-xr-x  bin bin
/opt/iexpress ---> dr-xr-xr-x  bin bin
/opt/iexpress/nagios (and subfolders) ---> dr-xr-xr-x  nagios nagios


- Making checks:
as user nagios (homedir /opt/iexpress/nagios):
$ /opt/iexpress/nagios/libexec/check_nrpe -H localhost
NRPE v2.12

$ /opt/iexpress/nagios/libexec/check_users -w 5 -c 10
USERS WARNING - 9 users currently logged in |users=9;5;10;0

$ /opt/iexpress/nagios/libexec/check_nrpe -H localhost -n -c check_users
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

- syslog entry
Nov 22 15:16:49 udvdbs05 nrpe[24061]: INFO: SSL/TLS initialized. All network traffic will be encrypted.
Nov 22 15:16:49 udvdbs05 nrpe[24061]: Error: Could not complete SSL handshake. 1

$ /opt/iexpress/nagios/libexec/check_nrpe -H localhost -c check_users
NRPE: Unable to read output

- syslog entry
Nov 22 15:18:16 udvdbs05 nrpe[24221]: INFO: SSL/TLS initialized. All network traffic will be encrypted.
Nov 22 15:18:29 udvdbs05 nrpe[24242]: INFO: SSL/TLS initialized. All network traffic will be encrypted.
Nov 22 15:18:29 udvdbs05 nrpe[24242]: Error: Request contained command arguments!
Nov 22 15:18:29 udvdbs05 nrpe[24242]: Client request was invalid, bailing out...

 

So I removed the -n from the inetd.conf and restarted the inetd

- syslog entry
Nov 23 13:12:23 udvdbs05 inetd[1755]: nrpe/tcp: New arguments for server /opt/iexpress/nagios/bin/nrpe
Nov 23 13:12:23 udvdbs05 inetd[1755]: Configuration complete


rerun the checks in the two ways (with check_nrpe and without)
$ /opt/iexpress/nagios/libexec/check_nrpe -H localhost -c check_users
CHECK_NRPE: Error - Could not complete SSL handshake.

- syslog entry
Nov 23 13:18:18 udvdbs05 nrpe[2840]: Unable to open config file '//nrpe.cfg' for reading
Nov 23 13:18:18 udvdbs05 nrpe[2840]: Config file '//nrpe.cfg' contained errors, aborting...


$ /opt/iexpress/nagios/libexec/check_users -w 5 -c 10
USERS OK - 5 users currently logged in |users=5;5;10;0

- syslog entry
no entries

 

The nagios server is on a Linux VM and, obviously, isn't able to monitor this machine.



Thanks

ALe