title: How to configure https_check URL in nagios
body: <p>I have installed Nagios (Nagios® Core™ Version 4.2.2) in Linux Server.I have written a JIRA URL check using check_http for HTTPS url.</p>
  
  <p>It should get a response 200, but It gives response HTTP CODE 302.</p>
  
  <pre><code>[demuc1dv48:/pkg/vdcrz/Nagios/libexec][orarz]# ./check_http -I xx.xx.xx  -u https://xxx.xxx.xxx.com/secure/Dashboard.jspa -S CONNECT
  SSL Version: TLSv1
  HTTP OK: HTTP/1.1 302 Found - 296 bytes in 0.134 second response time |time=0.134254s;;;0.000000 size=296B;;;
  </code></pre>
  
  <p>So I configured the same in the nagios configuration file.</p>
  
  <pre><code>define command{
          command_name    check_https_jira_prod
          command_line    $USER1$/check_http -I xxx.xxx.xxx.com  -u https://xxx.xxx.xxx.com/secure/Dashboard.jspa -S CONNECT -e 'HTTP/1.1 302'
  }
  </code></pre>
  
  <p>Now my JIRA server is down, But it is not reflected in the nagios check.The nagios response still shows HTTP code 302 only.</p>
  
  <p>How to fix this issue?</p>