[Nagios-devel] check_tcp and check_ping resolve problem - Invalid
Posted: Tue Jun 12, 2007 1:56 am
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=3D0.038298s;;;0.000000 size=3D2657B;;;0
$ /usr/local/nagios/libexec/check_http -H localhost
HTTP OK HTTP/1.1 200 OK - 2657 bytes in 0.014 seconds =
|time=3D0.014151s;;;0.000000 size=3D2657B;;;0
We are curious to what the reason for this behaviour might be - any =
ideas?
Software versions are:
$ uname -a
SunOS 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
--=20
=20
Venlig hilsen
=20
Steffen Poulsen
Systemmanager
=20
TDC Totall=F8sninger A/S
NTHI
Sletvej 30, A-094
DK-8310 Tranbjerg J
Denmark
=20
+45 66 67 61 66
+45 29 25 66 68 (Mobil)
E-mail: [email protected]
www: tdc.dk
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
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=3D0.038298s;;;0.000000 size=3D2657B;;;0
$ /usr/local/nagios/libexec/check_http -H localhost
HTTP OK HTTP/1.1 200 OK - 2657 bytes in 0.014 seconds =
|time=3D0.014151s;;;0.000000 size=3D2657B;;;0
We are curious to what the reason for this behaviour might be - any =
ideas?
Software versions are:
$ uname -a
SunOS 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
--=20
=20
Venlig hilsen
=20
Steffen Poulsen
Systemmanager
=20
TDC Totall=F8sninger A/S
NTHI
Sletvej 30, A-094
DK-8310 Tranbjerg J
Denmark
=20
+45 66 67 61 66
+45 29 25 66 68 (Mobil)
E-mail: [email protected]
www: tdc.dk
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]