Hi Benjamin,
The command was successful the first time and then again threw a socket timeout error.
Working:
[root@hostname ~]# $USER2$/check_http -t 180 -w 10 -c 15 --ssl -f follow -I 10.*.*.* -u
https://vpn.domain.com -v
GET
https://vpn.domain.com HTTP/1.0
User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)
Connection: close
Accept: */*
https://10.*.*.*:443https://vpn.domain.com is 263 characters
STATUS: HTTP/1.0 302 Found
**** HEADER ****
Server: BigIP
Cache-Control: no-cache, no-store
Connection: Close
Content-Length: 0
Location: /vdesk/hangup.php3
Set-Cookie: LastMRH_Session=ff19456e;path=/;secure
Set-Cookie: MRHSession=962183175d85d0f43a1b8959ff19456e;path=/;secure
**** CONTENT ****
Redirection to http://10.*.*.*:443/vdesk/hangup.php3
GET /vdesk/hangup.php3 HTTP/1.1
User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)
Connection: close
Host: 10.*.*.*
Accept: */*
https://10.*.*.*:443/vdesk/hangup.php3 is 5332 characters
STATUS: HTTP/1.1 200 OK
**** HEADER ****
Date: Thu, 03 Sep 2020 03:41:12 GMT
Server: BigIP
Content-Length: 4638
Connection: close
Content-Type: text/html; charset=utf-8
X-Frame-Options: DENY
Set-Cookie: MRHSession=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/
Set-Cookie: F5_ST=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/
Set-Cookie: MRHSHint=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/
Set-Cookie: F5_HT_shrinked=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/
Set-Cookie: F5_fullWT=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/
Set-Cookie: MRHSequence=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/
Pragma: no-cache
Cache-Control: no-cache, must-revalidate
**** CONTENT ****
<html>
<head>
<meta name="robots" content="noindex,nofollow">
<title>BIG-IP logout page</title>
<link rel="stylesheet" type="text/css" HREF="/public/include/css/apm.css">
<script src="/public/include/js/common.js" language="javascript"></script>
<script src="/public/include/js/u_plugin.js" language="javascript"></script>
<script language="javascript">
function InsertActivexControl(clsid, params)
{
var container = document.getElementById("logoutActivexContainer");
if (navigator.appName == "Microsoft Internet Explorer") {
var paramsCode = "";
for (var item in params) {
paramsCode += "<param name='" + item + "' value='" + params[item] + "'>";
}
container.innerHTML =
"<center><object classId=CLSID:" + clsid + " border=0 width=1 height=1>" +
paramsCode + "</object></center>";
}
else {
var pluginHost = new UPluginHost("", container);
var control = {"clsid": clsid, "width": 1, "height": 1};
pluginHost.hostControl(control, params);
}
}
function OnLoad()
{
var isBrowserControl = false;
try {
isBrowserControl = ("undefined" != typeof(window.external))
&& ("unknown" != typeof(window.external))
&& ("undefined" != typeof(window.external.WebLogonNotifyUser))
&& ("unknown" != typeof(window.external.WebLogonNotifyUser));
}
catch(e) {}
if(!isBrowserControl) {
document.getElementById("newSessionDIV").style.visibility = "visible";
}
try
{
if (get_cookie("F5_PWS") == "1")
{
document.cookie = "F5_PWS=0; path=/; expires=Fri, 01-Jan-1970 00:00:01 GMT";
var pwsClassId = "7E73BE8F-FD87-44EC-8E22-023D5FF960FF";
InsertActivexControl(pwsClassId, {"command": "exit"} );
}
}catch (e) {};
}
</script>
</head>
<body onload="OnLoad();">
<script>
try{
if(window.external && window.external.WebLogonOnAuthFailure) {
window.external.WebLogonOnAuthFailure();
}
}catch(e){};
try {
window.external.OnHostClose();
} catch(e) { }
</script>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" id="viewport" content="initial-scale=1.0" />
<meta name="robots" context="noindex,nofollow">
<script language="javascript">
//orientation toolbox
function setViewport(){
document.getElementById("viewport").setAttribute('content', Math.abs(window.orientation) == 90 ? 'width=device-height, initial-scale=1' : 'width=device-width, initial-scale=1.0' );
}
setViewport();
window.onorientationchange = function() {
setViewport();
}
</script>
<table id="page_header">
<tr >
<td id="header_leftcell"><img src='/public/images/customization/Common/PROD_RemoteUserVPN_vpn.domain.com_access_general_ui/logo_image_en.png'/></td>
<td id="header_rightcell"></td>
</tr>
<tr>
<td></td>
<td id="maxTimeoutTd"><span id="maxTimeoutTag" title=""></span></td>
</tr>
</table>
<noscript>
<div id="noscript_warning_red">JavaScript is not enabled. Please enable JavaScript in your browser or contact your system administrator for assistance.</div>
<div id="noscript_warning_newsession">To open a new session, please <A href="/">click here.</A></div>
</noscript>
<table id="main_table" class="logout_page">
<tr>
<td id="main_table_info_cell">
<table id="interaction_table">
<tr>
<td id="interaction_table_header">Your session is finished.</td>
</tr>
<tr>
<td class="interaction_table_option_cell"><br><DIV ID="sessionDIV" style='visibility:hidden' align=left></DIV>
Logged out successfully.<br> <br>Thank you for using BIG-IP.<br><br>
<div id="newSessionDIV" style='visibility:hidden'>To open a new session, please <A href='/'>click here.</A></div> </td>
</tr>
<tr>
<td class="interaction_table_footer"></td>
</tr>
</table>
</td>
<td id="main_table_image_cell"><img src="/public/images/my/tr.gif"></td></tr>
</table>
<div id="page_footer"><div>This product is licensed from F5 Networks. © 1999-2018 F5 Networks. All rights reserved. </div></div>
<DIV ID="logoutActivexContainer" class="inspectionHostDIVSmall"></DIV>
</body>
</html>
HTTP OK: HTTP/1.1 200 OK - 5332 bytes in 0.043 second response time |time=0.042636s;10.000000;15.000000;0.000000 size=5332B;;;0
Error:
[root@hostname ~]# $USER2$/check_http -t 180 -w 10 -c 15 --ssl -f follow -I 10.*.*.* -u
https://vpn.domain.com -v
GET
https://vpn.domain.com HTTP/1.0
User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)
Connection: close
Accept: */*
https://10.*.*.*:443https://vpn.domain.com is 263 characters
STATUS: HTTP/1.0 302 Found
**** HEADER ****
Server: BigIP
Cache-Control: no-cache, no-store
Connection: Close
Content-Length: 0
Location: /vdesk/hangup.php3
Set-Cookie: LastMRH_Session=a9d75324;path=/;secure
Set-Cookie: MRHSession=4b2dd710bbb17eece760c2e4a9d75324;path=/;secure
**** CONTENT ****
Redirection to http://10.*.*.*:443/vdesk/hangup.php3
GET /vdesk/hangup.php3 HTTP/1.1
User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)
Connection: close
Host: 10.*.*.*
Accept: */*
CRITICAL - Socket timeout after 180 seconds