Ad Widget

Collapse

How do Zabbix listen all interfaces?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ephillipe
    Junior Member
    • Apr 2012
    • 7

    #1

    How do Zabbix listen all interfaces?

    linux-2vmt:~ # netstat --tcp --numeric
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55845 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55856 TIME_WAIT
    tcp 0 0 127.0.0.1:55857 127.0.0.1:10050 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55861 TIME_WAIT
    tcp 0 0 127.0.0.1:55862 127.0.0.1:10050 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55876 TIME_WAIT
    tcp 0 0 127.0.0.1:37613 127.0.0.1:80 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55850 TIME_WAIT
    tcp 0 0 127.0.0.1:55874 127.0.0.1:10050 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55844 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55860 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55869 TIME_WAIT
    tcp 0 52 10.0.4.50:22 10.0.2.159:37642 ESTABLISHED
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55846 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55875 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55853 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55868 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55871 TIME_WAIT
    tcp 0 0 10.0.4.50:52236 10.0.0.41:80 TIME_WAIT
    tcp 0 0 127.0.0.1:55855 127.0.0.1:10050 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55877 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55865 TIME_WAIT
    tcp 0 0 127.0.0.1:10051 127.0.0.1:52175 TIME_WAIT
    tcp 0 0 127.0.0.1:55872 127.0.0.1:10050 TIME_WAIT
    tcp 0 0 127.0.0.1:55873 127.0.0.1:10050 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55851 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55863 TIME_WAIT
    tcp 0 0 127.0.0.1:10050 127.0.0.1:55847 TIME_WAIT
    tcp 0 0 10.0.4.50:80 10.0.2.159:37639 TIME_WAIT
    tcp 0 0 10.0.4.50:80 10.0.2.159:37637 TIME_WAIT
    tcp 0 0 10.0.4.50:80 10.0.2.159:37638 TIME_WAIT
    tcp 0 0 10.0.4.50:80 10.0.2.159:37640 TIME_WAIT
    tcp 0 0 ::1:52965 ::1:80 TIME_WAIT




    Above can verify that the server is not listening as well as 127.0.0.1:10051. The IP of this server is 10.0.4.50. How do I make it listen on all IP's associated with this machine, that is *?

    Grateful.
    Last edited by ephillipe; 11-04-2012, 15:03. Reason: Invalid post. My bad.
  • cirrhus9.com
    Member
    • Feb 2012
    • 58

    #2
    #ListenIP=0.0.0.0

    in
    Code:
    /etc/zabbix/zabbix_agentd.conf
    should do it.
    Restart the agent daemon after editing and do another netstat...

    Unremark "# ListenIP=0.0.0.0" and restart the agent.
    "ListenIP=0.0.0.0" (no quotes) should be "all IPs". but I am not 100% certain.

    HTH.
    Last edited by cirrhus9.com; 16-04-2012, 13:56.

    Comment

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

      #3
      by actually displaying listen state...

      netstat -ntl
      Zabbix 3.0 Network Monitoring book

      Comment

      Working...