diff --git a/TCPCheck.py b/TCPCheck.py index ec63ecb..9504c12 100755 --- a/TCPCheck.py +++ b/TCPCheck.py @@ -451,6 +451,14 @@ def web_check(self): if re.findall('^/', self.agentMgr.agent_option("URLPATH")): # This means we have a preceeding / FINALPATH="%s" % self.agentMgr.agent_option("URLPATH") + # Check if the URL Path is a full HTTP URI + elif re.findall('^http://', self.agentMgr.agent_option("URLPATH")): + # This means we have a preceeding http:// + FINALPATH = "%s" % self.agentMgr.agent_option("URLPATH") + # Check if the URL Path is a full HTTPS URI + elif re.findall('^https://', self.agentMgr.agent_option("URLPATH")): + # This means we have a preceeding https:// + FINALPATH = "%s" % self.agentMgr.agent_option("URLPATH") else: FINALPATH="/%s" % self.agentMgr.agent_option("URLPATH") else: