CRITICAL - Socket timeout http URL

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: CRITICAL - Socket timeout http URL

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: CRITICAL - Socket timeout http URL

Post 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)
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: CRITICAL - Socket timeout http URL

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: CRITICAL - Socket timeout http URL

Post 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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: CRITICAL - Socket timeout http URL

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked