triggers - How to check HTTP response code in zabbix? -


i have zabbix server 2.2 , few linux hosts websites. how can notification zabbix, if http(s) response code not 200?

i've tried triggers without success:

    {owncloud:web.test.rspcode[availability of owncloud,owncloud availability].last(,10)}#200      {owncloud:web.test.error[availability of owncloud].count(10,200)}<1      {owncloud:web.test.error[availability of owncloud].last(#1,10)}=200 

but nothing works. never got notification, code not 200 anymore 404, because have renamed index.php of owncloud index2.php

i found issue. need specify url check file. example in web scenario:

    https://owncloud.example.com/index.php 

"note zabbix frontend uses javascript redirect when logging in, first must log in, , in further steps may check logged-in features. additionally, login step must use full url index.php file." - https://www.zabbix.com/documentation/2.4/manual/web_monitoring/example

i used following expression trigger:

    {owncloud:web.test.fail[availability of owncloud].last()}>0 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -