Page 3 of 3

Re: CRITICAL - Socket timeout http URL

Posted: Fri Mar 15, 2019 12:09 pm
by cdienger
Something may have changed in the plugins between version. Try downloading and installing the old plugin to test on the non working machine:

Code: Select all

cd /tmp
wget http://nagios-plugins.org/download/nagios-plugins-2.0.2.tar.gz
tar -xzvf nagios-plugins-2.0.2.tar.gz
cd nagios-plugins-2.0.2
./configure
make
cd plugins
./check_http -w 15 -c 20 -H 13.129.00.00 -p 9809 -e GIOP -u /FileNet/Engine -v

Re: CRITICAL - Socket timeout http URL

Posted: Mon Mar 18, 2019 1:22 pm
by rtsupport
nice, with older version it is working fine. Please refer the output below for both version on same server.

New Version --

Code: Select all

[nagios@usa00000 plugins]$ cd -
/usr/local/nagios/libexec
[nagios@usa00000 libexec]$ ./check_http -w 5 -c 10 -H 13.129.00.00 -p 9809 -e GIOP -u /FileNet/Engine -v
GET /FileNet/Engine HTTP/1.1
User-Agent: check_http/v2.2.1 (nagios-plugins 2.2.1)
Connection: close
Host: 13.129.00.00:9809
Accept: */*


http://13.129.00.00:9809/FileNet/Engine is 12 characters
STATUS: GIOP
CRITICAL - Socket timeout

[nagios@usa000000 libexec]$ /usr/local/nagios/libexec/check_http -V
check_http v2.2.1 (nagios-plugins 2.2.1)

Older Version --

Code: Select all

[nagios@usa00000 libexec]$ cd -
/tmp/nagios-plugins-2.0.2/plugins
[nagios@usa00000 plugins]$ ./check_http -w 5 -c 10 -H 13.129.00.00 -p 9809 -e GIOP -u /FileNet/Engine -v
GET /FileNet/Engine HTTP/1.1
User-Agent: check_http/v2.0.2 (nagios-plugins 2.0.2)
Connection: close
Host: 13.129.00.00:9809
Accept: */*


http://13.129.00.00:9809/FileNet/Engine is 12 characters
STATUS: GIOP
**** HEADER ****

**** CONTENT ****

Status line output matched "GIOP" -
HTTP OK: Status line output matched "GIOP" - 12 bytes in 0.034 second response time |time=0.034050s;5.000000;10.000000;0.000000 size=12B;;;0

[nagios@usa00000 plugins]$ /tmp/nagios-plugins-2.0.2/plugins/check_http -V
check_http v2.0.2 (nagios-plugins 2.0.2)

Re: CRITICAL - Socket timeout http URL

Posted: Mon Mar 18, 2019 2:22 pm
by cdienger
Thanks for confirming. I would suggest filing something for this at https://github.com/nagios-plugins/nagios-plugins since there appears to have been a change between the two versions.

Re: CRITICAL - Socket timeout http URL

Posted: Tue Mar 19, 2019 8:06 am
by rtsupport
Sure will do that as well, also now i dont want to extract all plugin in /usr/local/nagios/libexec/ as on PRD might be this will impact to other plugin which are working fine. so can we only replace/update/move "check_http pluign" only?

Re: CRITICAL - Socket timeout http URL

Posted: Tue Mar 19, 2019 11:07 am
by cdienger
Yes, just copy the plugin from /tmp/nagios-plugins-2.0.2/plugins/ over to /usr/local/nagios/libexec/ and make sure the permissions/ownership are set properly.