Ad Widget

Collapse

Zabbix 2.2: web scenario gets 403 even id the page is served correctly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • louigi600
    Junior Member
    • Nov 2013
    • 6

    #1

    Zabbix 2.2: web scenario gets 403 even id the page is served correctly

    I've a fresh install of zabbix 2.2.0 on a CentOS 6.4 32 bit.
    I set up a web scenario just to play around to monitor the statis of the default apache page served by Centos on the zabbix server machine.
    I just check for "Apache HTTP Server Test Page powered by CentOS" to be returned as a requested string.

    If I go to the Monitoring->Web menu I see the status to be ok ... but if I go and have a look at the Monitoring -> Latest data I see that the last run on the scenarion recorded a 403 response code along with a download speed of 6.32 MBps.
    It just does not make sense that the web senario is in OK status, the page was served @ 6.32 MBps and the response code is 403.
  • louigi600
    Junior Member
    • Nov 2013
    • 6

    #2
    Ok I had a better look at the accesslog:

    192.168.0.10 - - [19/Nov/2013:16:04:43 +0100] "GET / HTTP/1.1" 403 5039 "-" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)"

    and what looked like a default index.html was actually the noindex.html in /var/www/error.
    That explains the page served but gets a 4xx response. I still think that 403 is not the correct code for a missing file: I would have expected 404 but I guess it's not zabbix fault but depends on how apache was configured/built (in my case CentOS).

    After having created an inbdex.html in the document root apache started returning the correct result code:

    192.168.0.10 - - [19/Nov/2013:16:26:43 +0100] "GET / HTTP/1.1" 200 47 "-" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)"

    Comment

    Working...