Ad Widget

Collapse

No establece conexión de angente Zabbix en un Centos 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ginesgb
    Junior Member
    • Nov 2014
    • 23

    #1

    No establece conexión de angente Zabbix en un Centos 7

    Hola , buenas a todos, he instalado el agente de Zabbix en un Centos 7 y he iniciado el servicio una vez configurado, pero tengo el problema que al iniciarlo no conecta con el servidor de Ubuntu que es donde tengo la web de Zabbix.

    [root@localhost etc]# service zabbix-agent status
    Redirecting to /bin/systemctl status zabbix-agent.service
    zabbix-agent.service - Zabbix Monitor Agent
    Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled)
    Active: active (running) since lun 2014-11-24 12:53:54 CET; 2min 5s ago
    Process: 10779 ExecStart=/usr/sbin/zabbix_agentd (code=exited, status=0/SUCCESS)
    Main PID: 10781 (zabbix_agentd)
    CGroup: /system.slice/zabbix-agent.service
    ââ10781 /usr/sbin/zabbix_agentd
    ââ10782 /usr/sbin/zabbix_agentd
    ââ10783 /usr/sbin/zabbix_agentd
    ââ10784 /usr/sbin/zabbix_agentd
    ââ10785 /usr/sbin/zabbix_agentd
    ââ10786 /usr/sbin/zabbix_agentd

    nov 24 12:53:54 localhost.localdomain systemd[1]: Started Zabbix Monitor Agent.
    [root@localhost etc]#

    [root@localhost ~]# netstat -atu
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State
    tcp 0 0 localhost:smtp 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:zabbix-agent 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN
    tcp 0 52 nettools:ssh 128.***.***.***:7802 ESTABLISHED
    tcp 0 0 nettools:ssh 128.***.***.***:4631 ESTABLISHED
    tcp 0 0 nettools:41334 128.***.***.***:zabbix-trapper TIME_WAIT
    tcp 0 0 nettools:41335 128.***.***.***:zabbix-trapper TIME_WAIT
    tcp 0 0 nettools:ssh 128.***.***.***:7793 FIN_WAIT2
    udp 0 0 nettools:ntp 0.0.0.0:*
    udp 0 0 localhost:ntp 0.0.0.0:*
    udp 0 0 0.0.0.0:ntp 0.0.0.0:*
    udp 0 0 0.0.0.0:45502 0.0.0.0:*
    udp 0 0 0.0.0.0:mdns 0.0.0.0:*
    udp 0 0 0.0.0.0:tftp 0.0.0.0:*

    ¿me podéis indicar que paso me falta para que pueda establecerse la conexión entre ambos? He desactivado la IPtables y el Firewall pero aun así no termina de completarse ni establecerse la conexión.
    Un saludo.
  • Hernandes Martins
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Apr 2011
    • 900

    #2
    Hola amigo,

    Creo que es un problem de conectividad, mira el servicio firewalld en CentOS 7 y haga los comandos a partir del server Zabbix.

    - para saber si el firewalld esta running

    firewall-cmd --state

    - para si hay conectividad.

    telnet 192.168.xxx.xxx 10050

    nc -n -v 192.168.xxx.xxx 10050
    __

    Att.
    Hernandes Martins - Zabbix Trainer

    Zabbix Brazil Partner - www.luniobr.com

    Zabbix Brazil Community - www.zabbixbrasil.org

    Blog: hernandesmartins.blogspot.com.br

    Skype: hernandss
    Telegram: @MrHernandes

    Español
    Facebook: facebook.com/groups/zabbixlatam
    Telegram: https://t.me/ZabbixEspañol

    Português
    Facebook: facebook.com/groups/zabbixbrasil/
    Telegram: https://t.me/ZabbixBrasil

    Comment

    • ginesgb
      Junior Member
      • Nov 2014
      • 23

      #3
      Gracias ante todo

      Hola, ante todo muchas gracias ,he efectuado lo que me has dicho y sigo igual.
      [root@localhost ~]# service iptables status
      Redirecting to /bin/systemctl status iptables.service
      iptables.service - IPv4 firewall with iptables
      Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled)
      Active: inactive (dead)

      [root@localhost ~]# firewall-cmd --state
      not running
      root@localhost ~]# nc -n -v 128.***.***.*** 10050
      Ncat: Version 6.40 ( http://nmap.org/ncat )
      Ncat: Connected to 128.***.***.***:10050

      Pero sigue igual, no conecta.

      [root@localhost ~]# netstat -putona
      Active Internet connections (servers and established)
      Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name Timer
      tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2095/master off (0.00/0/0)
      tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 10781/zabbix_agentd off (0.00/0/0)
      tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1088/sshd off (0.00/0/0)
      tcp 0 0 128.21.80.220:22 128.21.80.103:11790 ESTABLISHED 10913/sshd: root@pt keepalive (175,42/0/0)
      tcp 0 52 128.21.80.220:22 128.21.80.103:18260 ESTABLISHED 11236/sshd: root@pt on (0,41/0/0)
      tcp 0 0 128.21.80.220:49093 128.21.80.185:10050 CLOSE_WAIT 11235/nc off (0.00/0/0)
      tcp6 0 0 :::10050 :::* LISTEN 10781/zabbix_agentd off (0.00/0/0)
      tcp6 0 0 :::22 :::* LISTEN 1088/sshd off (0.00/0/0)
      udp 0 0 128.21.80.220:123 0.0.0.0:* 562/ntpd off (0.00/0/0)
      udp 0 0 127.0.0.1:123 0.0.0.0:* 562/ntpd off (0.00/0/0)
      udp 0 0 0.0.0.0:123 0.0.0.0:* 562/ntpd off (0.00/0/0)
      udp 0 0 0.0.0.0:45502 0.0.0.0:* 531/avahi-daemon: r off (0.00/0/0)
      udp 0 0 0.0.0.0:5353 0.0.0.0:* 531/avahi-daemon: r off (0.00/0/0)
      udp 0 0 0.0.0.0:69 0.0.0.0:* 1133/xinetd off (0.00/0/0)
      udp6 0 0 fe80::20c:29ff:fe1a:123 :::* 562/ntpd off (0.00/0/0)
      udp6 0 0 ::1:123 :::* 562/ntpd off (0.00/0/0)
      udp6 0 0 :::123 :::* 562/ntpd off (0.00/0/0)
      [root@localhost ~]#

      10786:20141124:170756.263 no active checks on server: host [herramienta.nose.org] not monitored
      10786:20141124:170956.300 active check configuration update from [128.***.***.***:10051] started to fail (cannot connect to [[128.***.***.***]:10051]: [111] Connection refused)
      10786:20141124:171056.313 active check configuration update from [128.***.***.***:10051] is working again
      10786:20141124:171056.313 no active checks on server: host [herramienta.nose.org] not monitored
      10786:20141124:171659.372 active check configuration update from [128.***.***.***:10051] started to fail (cannot connect to [[128.***.***.***]:10051]: [4] Interrupted system call)
      10786:20141124:172726.464 active check configuration update from [128.***.***.***:10051] is working again
      10786:20141124:172726.464 no active checks on server: host [herramienta.nose.org] not monitored

      ¿que pruebas puedo mas efectuar?

      Comment

      Working...