check_tcp and check_ping resolve problem - Invalid hostname, address or socket

Steffen Poulsen step at tdc.dk
Tue Jun 12 11:55:47 CEST 2007


Hi,

We have a problem with some of the tcp-related check plugins at our Solaris installations (Solaris versions 7, 8, 9 and 10)

The problem seems to be that the plugins are unable to resolve hostnames, i.e.:

$ /usr/local/nagios/libexec/check_tcp -H 127.0.0.1 -p 80
TCP CRITICAL - Invalid hostname, address or socket: 127.0.0.1
$ /usr/local/nagios/libexec/check_tcp localhost -p 80
TCP CRITICAL - Invalid hostname, address or socket: localhost
$ /usr/local/nagios/libexec/check_ping -H localhost -w 1,1% -c 2,2%
check_ping: Invalid hostname/address - localhost
$ /usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 1,1% -c 2,2%
check_ping: Invalid hostname/address - 127.0.0.1

While these are broken, check_http runs OK:

$ /usr/local/nagios/libexec/check_http -H 127.0.0.1
HTTP OK HTTP/1.1 200 OK - 2657 bytes in 0.038 seconds |time=0.038298s;;;0.000000 size=2657B;;;0
$ /usr/local/nagios/libexec/check_http -H localhost
HTTP OK HTTP/1.1 200 OK - 2657 bytes in 0.014 seconds |time=0.014151s;;;0.000000 size=2657B;;;0

We are curious to what the reason for this behaviour might be - any ideas?

Software versions are:

$ uname -a
SunOS <hostname> 5.9 Generic sun4u sparc SUNW,Ultra-80 (as stated we have the same behaviour for the other Solaris versions also)

$ /usr/local/nagios/libexec/check_http --version
check_http (nagios-plugins 1.4.8) 1.101
$ /usr/local/nagios/libexec/check_tcp --version
check_tcp (nagios-plugins 1.4.8) 1.89

Regards,
Steffen

-- 
 
Venlig hilsen
 
Steffen Poulsen
Systemmanager
 
TDC Totalløsninger A/S
NTHI
Sletvej 30, A-094
DK-8310 Tranbjerg J
Denmark
 
+45 66 67 61 66
+45 29 25 66 68 (Mobil)
E-mail: step at tdc.dk
www: tdc.dk

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/




More information about the Developers mailing list