Ad Widget

Collapse

Group and Host remain blank in Monitoring -> Web even though there is a Scenario

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lstewart
    Junior Member
    • Feb 2009
    • 11

    #1

    Group and Host remain blank in Monitoring -> Web even though there is a Scenario

    In Configuration -> Web I've created a scenario in a group and for a host by using the appropriate Application. This process is confusing by the way.

    The scenario I've created appears and the Group and Host drop downs list all my groups and hosts under which the correct host has the scenario I created. It has one step (to visit a site) and a return code of 200 is required.

    When I go into Monitoring -> Web however I see none of my groups list and no hosts listed. I can therefor not find my web monitoring scenario.

    I can however see this ridiculous error in /tmp/zabbix_server.log so I know it's running (but failing) which is why I upgraded to 1.6.6 in the first place.

    7228:20091005:194923 Error doing curl_easy_perform [couldn't connect to server]

    So basically:
    1) Why can't I see the groups and hosts *and* my scenario in Monitoring -> Web?
    2) Why do I get this curl error when the right URL is being used in the only step in the scenario?

    If I can provide information that would help troubleshoot this please let me know.

    Used this to compile zabbix:
    /root/zabbixbuild/zabbix-1.6.6/config.log: $ ./configure --enable-server --enable-proxy --enable-agent --with-mysql --with-jabber=/usr/ --with-libcurl --with-net-snmp

    [root@zabbix1 ~]# zabbix_agentd -V
    ZABBIX Agent (daemon) v1.6.6 (revision 7836) (26 August 2009)
    Compilation time: Oct 1 2009 23:44:52
    [root@zabbix1 ~]# zabbix_server -V
    ZABBIX Server (daemon) v1.6.6 (revision 7836) (26 August 2009)
    Compilation time: Oct 1 2009 23:44:52

    Thank you very much for your time in reviewing this post. Any information you can provide is appreciated.
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #2
    Hi

    the user interface in 1.6.x was changed, to not show
    a host/group, etc. if no data is available for display.

    So, if there is no connection possible between your zabbix server
    and the website host, there aren't any data to show.

    If the error message in the zabbix_server.log is correct,
    this means what you (not) see is that there are no data, yet.

    You could use curl from the command line to check whether you can access the website
    from your zabbix server.

    HTH,

    Norbert.

    Comment

    • lstewart
      Junior Member
      • Feb 2009
      • 11

      #3
      Originally posted by NOB
      Hi

      the user interface in 1.6.x was changed, to not show
      a host/group, etc. if no data is available for display.
      Thank you that explains that.

      Originally posted by NOB
      You could use curl from the command line to check whether you can access the website
      from your zabbix server.

      HTH,

      Norbert.
      I used curl to call the URL in question and it worked without an issue. Do you know what parameters are given to curl so I can replicate exactly what zabbix is trying? Maybe I can get it to fail somehow if I know exactly what switches are being passed and in what order.

      Thanks again for reviewing my posts and replying.

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        curl version ?
        is the url https by any chance ?
        does web monitoring work for something simple like maybe zabbix frontend itself ?
        Zabbix 3.0 Network Monitoring book

        Comment

        • lstewart
          Junior Member
          • Feb 2009
          • 11

          #5
          Originally posted by richlv
          curl version ?
          # curl -V
          curl 7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
          Protocols: tftp ftp telnet dict ldap http file https ftps
          Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

          Originally posted by richlv
          is the url https by any chance ?
          No, the URL I'm testing is http.

          Originally posted by richlv
          does web monitoring work for something simple like maybe zabbix frontend itself ?
          Good idea, I've just tried this... The result was:
          7228:20091006:161332 Error doing curl_easy_perform [couldn't connect to server]

          However.... Argh, I just realized what the problem was. HTTP requests were only allowed by the firewall by root. I've added zabbix (uid 501) to the firewall as being allowed to send HTTP and HTTPS requests out of the server.

          ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 OWNER UID match 501
          ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 OWNER UID match 501

          It looks like it's working now. Thanks very much for your patience and your suggestions.

          Comment

          Working...