title: How to check HTTP response code in zabbix?
body: <p>I have a Zabbix server 2.2 and a few linux hosts with websites. How can I get a notification from Zabbix, if the HTTP(s) response code is not 200?</p>
  
  <p>I've tried those triggers without any success:</p>
  
  <pre><code>    {owncloud:web.test.rspcode[Availability of owncloud,owncloud availability].last(,10)}#200
  
      {owncloud:web.test.error[Availability of owncloud].count(10,200)}&lt;1
  
      {owncloud:web.test.error[Availability of owncloud].last(#1,10)}=200
  </code></pre>
  
  <p>But nothing works. I never got an notification, that the code is not 200 anymore even it was 404, because I have renamed the index.php of owncloud to index2.php</p>