Ad Widget

Collapse

zabbix_agent port change

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leonardomachado
    Junior Member
    • Jun 2012
    • 19

    #1

    zabbix_agent port change

    How do I change the tcp port that zabbix agent will listen?

    Using: zabbix 2.0.1

    ps: ListenPort=10040 parameter was not accepted.

    thks.
  • 0siris
    Member
    Zabbix Certified Specialist
    • Nov 2010
    • 76

    #2
    what do you mean "was not accepted"?
    did you restart the agent after changing the port? did you instruct zabbix server to access that specific host on the new port?

    Comment

    • leonardomachado
      Junior Member
      • Jun 2012
      • 19

      #3
      0siris,


      # sbin/zabbix_agent -c etc/zabbix_agentd.conf
      zabbix_agent [3864]: unknown parameter [ListenPort] in config file [etc/zabbix_agentd.conf], line 2


      # cat etc/zabbix_agentd.conf
      Server=10.7.5.220
      ListenPort=10040

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        what happens when you run ./zabbix_agentd -c etc/zabbix_agentd.conf ?


        If you are using zabbix_agent on purpose, then these steps apply.

        Step 7

        Configure /etc/inetd.conf

        If you plan to use zabbix_agent instead of the recommended zabbix_agentd, the following line must be added:

        zabbix_agent stream tcp nowait.3600 zabbix /opt/zabbix/bin/zabbix_agent

        Restart inetd

        shell> killall -HUP inetd

        Modify default settings in configuration files

        Comment

        • leonardomachado
          Junior Member
          • Jun 2012
          • 19

          #5
          I will use zabbix_agentd.

          Thnks a lot!

          Comment

          Working...