Ad Widget

Collapse

Trouble with ServerPort & ListenPort

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbrand5371
    Member
    • May 2009
    • 55

    #1

    Trouble with ServerPort & ListenPort

    Hi!

    Due to security issues i have to change the default communication Ports.
    On Zabbix-Server is changed:
    zabbix_agentd.conf:ServerPort=10510
    zabbix_agentd.conf:ListenPort=10500
    zabbix_server.conf:ListenPort=10510
    zabbix.conf.php:$ZBX_SERVER_PORT = "10510";

    On Zabbix-Agent's is changed:
    zabbix_agentd.conf:ServerPort=10510
    zabbix_agentd.conf:ListenPort=10500

    All processes (httpd, zabbix, zabbix-agent) restarted.
    But zabbix-server still uses Port 10050 to connect the agents.
    Some Ideas ?

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

    #2
    you set agent port per host in web frontend - see host properties
    Zabbix 3.0 Network Monitoring book

    Comment

    • mbrand5371
      Member
      • May 2009
      • 55

      #3
      Works fine, thanks :-)

      Comment

      • mbrand5371
        Member
        • May 2009
        • 55

        #4
        Another question!

        Is it possible to configure zabbix using port 10500 after discovery?

        Currently zabbix discovers the hosts an uses port 10050 to connect the agent.
        Since we have changed the default port, this task will fail an zabbix is not able to set the correct monitorings by discover

        Regards, Marcus

        Comment

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

          #5
          what do you refer to by "after discovery" ? if you mean actual monitoring, then that depends on the template you have assigned to the host. modify the template accordingly.
          Zabbix 3.0 Network Monitoring book

          Comment

          • mbrand5371
            Member
            • May 2009
            • 55

            #6
            here comes the discovery rule:
            1)
            Name: discovery_agent
            Discovery by proxy: (no proxy)
            IP range: 10.100.216.0-254
            Delay (seconds): 600
            Checks: ZABBIX agent (10500) "system.uname"

            2)
            Name: discovery_ping
            Discovery by proxy: (no proxy)
            IP range: 10.100.216.0-254
            Delay (seconds): 600
            Checks: ICMP Ping

            after discover the zabbix server try's to connect the agent by using port 10050 and not port 10500 as we need.

            Comment

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

              #7
              are there any actions against these discovery rules ?
              Zabbix 3.0 Network Monitoring book

              Comment

              • mbrand5371
                Member
                • May 2009
                • 55

                #8
                yes, currently two different actions:
                Action: LSKN_discovery_hpux_SERVER
                Service type = "ZABBIX agent"
                Discovery status = "Up"
                Received value like "HP-UX"
                Link to template "LSKN_Template_HPUX"

                Action: LSKN_discovery_linux_SERVER
                Service type = "ZABBIX agent"
                Discovery status = "Up"
                Received value like "Linux"
                Link to template "LSKN_Template_Linux"

                Comment

                Working...