Ad Widget

Collapse

Simple Monitoring (HTTP) not working, always down

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cybermcm
    Junior Member
    • Jan 2019
    • 13

    #1

    Simple Monitoring (HTTP) not working, always down

    Hi,

    I'm new to Zabbix and testing it with docker (and I didn't find any solution here in the forum, maybe I'm doing something wrong)
    my config (docker-compose)
    Code:
    zabbix:
      container_name: zabbix
      depends_on:
       - sql
       - mail
       - zabbix-server
      environment:
       - DB_SERVER_HOST=sql
       - MYSQL_USER=xxx
       - MYSQL_PASSWORD=xxx
       - PHP_TZ=Europe/Vienna
       - ZBX_SERVER_NAME=xxx.net Zabbix
      hostname: xxx.net
      image: zabbix/zabbix-web-apache-mysql:latest
      networks:
       - sql
      restart: always
      volumes:
       - /etc/timezone:/etc/timezone:ro
       - /etc/localtime:/etc/localtime:ro
    
     zabbix-agent:
      container_name: zabbix-agent
      depends_on:
       - sql
       - mail
       - zabbix-server
      environment:
       - ZBX_HOSTNAME=zabbix-server
      image: zabbix/zabbix-agent:latest
      networks:
       - sql
      privileged: true
      restart: always
      volumes:
       - /etc/timezone:/etc/timezone:ro
       - /etc/localtime:/etc/localtime:ro
    
     zabbix-server:
      container_name: zabbix-server
      depends_on:
       - sql
       - mail
      environment:
       - DB_SERVER_HOST=sql
       - MYSQL_USER=xxx
       - MYSQL_PASSWORD=xxx
      hostname: zabbix-server
      image: zabbix/zabbix-server-mysql:latest
      networks:
       - sql
      restart: always
      volumes:
       - /etc/timezone:/etc/timezone:ro
       - /etc/localtime:/etc/localtime:ro
    Zabbix is working (behind an Apache reverse proxy), I can monitor the Zabbix host.

    I setup 2 new additional hosts for simple HTTP/HTTPS/SMTP (added template to the new hosts) monitoring but the hosts are always marked as down. Ping monitoring is working (host is up).
    What is the issue with HTTPS and SMTP? Both hosts do not have an agent, shouldn't be necessary.

    Any ideas?
  • cybermcm
    Junior Member
    • Jan 2019
    • 13

    #2
    sorry to bump this up, but this should be a simple question, really no answer? Is there a log file where I can get further information?

    Comment

    • sludge3000
      Junior Member
      • Jan 2019
      • 12

      #3
      Hello cybermcm,

      Welcome to the community forums. As this is a community forum there is no guarantee of a response and while it may seem like a simple question, it may not be simple to answer.

      Additionally, you appear to be requesting troubleshooting support. Professional support is not offered through this forum as it is a paid service from Zabbix.


      If you browse to the web page from the Zabbix server, does this work?

      Please confirm on both the Zabbix server and the monitored host that the TCP handshake is completed.

      If not, does the Zabbix server have direct access to the monitored host or is it connecting through the reverse proxy?
      Is the reverse proxy configured to automatically forward SYN packets or will it wait until an HTTP request is received before establishing a connection to the server?

      The exact location of Zabbix logs will depend on your OS. On Debian they are in /var/log/zabbix.

      sludge3000

      Comment

      • cybermcm
        Junior Member
        • Jan 2019
        • 13

        #4
        sludge3000: Thank you for your reply. I didn't get any notification from the forum so please excuse my delayed answer. As this installation is still a test environment I started from scratch (thanks to docker this is simple).
        The error is gone now, it was a configuration problem. If you only want to monitor simple things you don't need an agent. I read some things about it that you have to provide agent settings even there is no agent in place.
        The problem was that I used the field "Host name" but left Agent interface default setting (127.0.0.1). So the ping check worked, HTTP not...

        Setting the Agent interface to the correct IP/DNS solved my problem.... Simple solution, stupid problem.

        Comment

        • sludge3000
          Junior Member
          • Jan 2019
          • 12

          #5
          cybermcm No worries for the delay.

          Thanks for letting us know the solution you found. I'm just starting with Zabbix myself so feedback like this helps everyone.

          Main thing is it is working now.

          Take care,
          sludge3000

          Comment

          Working...