Firstly, thanks for looking into the issue ...
There's a firewall between Luxembourg ( rmds-sink-lx-1 ) and Denmark ( rmds-nagios ) .Luxembourg remote servers can only be accessed via SSH from rmds-
nagios.
It does not not use SSL as some other commands also work when -n option is supplied.
There is no issue with the script as it works fine when run on the rmds-sink-lx-1 ( locally ) unlike when run emotely from a central nagios server ( rmds-
nagios ) .
This script works fine too when we want to remotely execute the command on other remote servers located in London.
(PROD)radmin@rmds-nagios:/opt/thomsonreuters/SOFTWARE/globalconfig$ /usr/local/nagios/libexec/check_nrpe -H rmds-sink-lx-1 -n -p 5903 -t 60 -c SMFexec
(PROD)radmin@rmds-nagios:/opt/thomsonreuters/SOFTWARE/globalconfig$
The o/p of the other 2 commands is as follows :
(PROD)radmin@rmds-nagios:/opt/thomsonreuters/SOFTWARE/globalconfig$ /usr/local/nagios/libexec/check_nrpe -H rmds-sink-lx-1
CHECK_NRPE: Socket timeout after 10 seconds.
Note :
Using the timeout option of 1 minute ( 60 seconds )
(PROD)radmin@rmds-nagios:/opt/thomsonreuters/SOFTWARE/globalconfig$ /usr/local/nagios/libexec/check_nrpe -H rmds-sink-lx-1 -t 60
CHECK_NRPE: Socket timeout after 60 seconds.
There seems to be a syntax issue with the other command ( This is a Solaris 10 system )
(PROD)radmin@rmds-nagios:/opt/thomsonreuters/SOFTWARE/globalconfig$ telnet rmds-sink-lx-1 -p 5903
Usage: telnet [-8] [-E] [-K] [-L] [-a] [-c] [-d] [-f/-F] [-r] [-x]
[-e char] [-k realm] [-l user] [-n tracefile] [-X atype]
[host-name [port]]
Note :
Thus I tried the following command using the appropriate syntax . However, it gets hung
(PROD)radmin@rmds-nagios:/opt/thomsonreuters/SOFTWARE/globalconfig$ telnet rmds-sink-lx-1 5903
Trying 10.2.20.218...
Connected to rmds-sink-lx-1.
Escape character is '^]'.
Do I need to supply any other parameter with check_nrpe to get the desired output ?
The most interesting fact is that it seems to work for other commands like check_ram that throw "one-line" output . But it does not work when we want to
get "multiple-line" output.
And It is definitely not using SSL ( with the -n option ) and it does not return anything when the option -n is not used as shows belows :
"check_ram:"
(PROD)radmin@rmds-nagios:/usr/local/nagios/libexec$ check_nrpe -n -H rmds-sink-lx-1 -p 5903 -t 60 -c check_ram
RAM OK - 745 MB out of 2048 MB RAM unused.
Note :
Without the -n option
(PROD)radmin@rmds-nagios:/usr/local/nagios/libexec$ check_nrpe -H rmds-sink-lx-1 -p 5903 -t 60 -c check_ram
(PROD)radmin@rmds-nagios:/usr/local/nagios/libexec$
"SMFexec:"
(PROD)radmin@rmds-nagios:/usr/local/nagios/libexec$ check_nrpe -H rmds-sink-lx-1 -n -p 5903 -t 60 -c SMFexec
(PROD)radmin@rmds-nagios:/usr/local/nagios/libexec$
If I edit check_ram script to display one more o/p, it does not work either
Would you advise me to upgrade the nrpe version because on
a. rmds-sink-lx-1 : NRPE plugin version which is 2.0 and it does not have -n option
(PROD)radmin@rmds-nagios:/usr/local/nagios/libexec$ /usr/local/nagios/libexec/check_nrpe -n -H rmds-sink-lx-1 -p 5903
NRPE v2.0
radmin@rmds-sink-lx-1# check_nrpe
Incorrect command line arguments supplied
NRPE Plugin for Nagios
Copyright (c) 1999-2003 Ethan Galstad (
[email protected])
Version: 2.0
Last Modified: 09-08-2003
License: GPL with exemptions (-l for more info)
Usage: check_nrpe -H <host> [-p <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]
Options:
<host> = The address of the host running the NRPE daemon
<Truncated>
b. rmds-nagios : NRPE plugin version which is 2.12 and it does have -n option
(PROD)radmin@rmds-nagios:/usr/local/nagios/libexec$ /usr/local/nagios/libexec/check_nrpe -n -H rmds-nagios
NRPE v2.12
(PROD)radmin@rmds-nagios:/usr/local/nagios/libexec$ check_nrpe
Incorrect command line arguments supplied
NRPE Plugin for Nagios
Copyright (c) 1999-2006 Ethan Galstad (
[email protected])
Version: 2.3 <================= It should 2.3 however here unlike 2.12 when checked remotely from rmds-nagios
Last Modified: 01-23-2006
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required
Usage: check_nrpe -H <host> [-n] [-p <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]
Options:
-n = Do no use SSL <=====================================
<host> = The address of the host running the NRPE daemon
<Truncated>
radmin@rmds-sink-lx-1# check_nrpe -l | grep SSL
exemption that compiling, linking, and/or using OpenSSL is allowed.
But if that's the case , the command check_ram should have also not ideally worked ?
Does the NRPE plugin version on both the servers need to be same or ideally with the main options like " do not use SSL " ?
Are the plugin hardware-dependent as it is a SPARC machine ?
radmin@rmds-sink-lx-1# uname -a
SunOS rmds-sink-lx-1 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V215
and also how to upgrade the plugin if needed ? Which plugin should I download and from where ?
Thanks again ...