Ad Widget

Collapse

Problem with client 1.4.X on different port

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Finger
    Junior Member
    • Feb 2008
    • 4

    #1

    Problem with client 1.4.X on different port

    Hello,

    First, thanks for this great tool !

    And sorry for my english, it's not perfect, I'll do my best to explain my probleme clarely.

    So, on XP or Win2003 server, I can't launch zabbix service when the ServerPort value is different thant 10051. My goal is to use another defaut port like 21 in my case.

    When I want to launch the service, this error message appear :

    Error 1053 : The service has not answer so fast after asking of launch

    When I change this port for 10051, It launch the program.

    So I ask me if it's a bug in Zabbix Agent or if it's a Windows Problem. I search but don't find answer to this question.

    I use Zabbix 1.4.2 on Ubuntu for the server and client with same version (I have old 1.1.X client on Windows for waiting).


    Thanks per Advance,
    Fabien


    Here is a part of my configuration File :

    Server=ip of server

    # Server port for sending active checks

    ServerPort=21
  • Finger
    Junior Member
    • Feb 2008
    • 4

    #2
    Please, Can anyone Help me ?

    This problem disallow us to deploy zabbix in a lot of hosts...

    Thanks,
    Finger

    Comment

    • trikke
      Senior Member
      • Aug 2007
      • 140

      #3
      Hi Finger,

      this is a restriction in the Zabbix agent code. The ServerPort should be something between 1024 and 32767! Remember ports < 1024 are reserved ports. If u want to change this u should change the source code and recompile from source ( source: zbxconf.c in Agent-Directory and server.c in Server-Directory)

      Greets

      Patrick

      Comment

      • Finger
        Junior Member
        • Feb 2008
        • 4

        #4
        Thanks For your answer, I 'll try to recompile agent from source.

        I know i use reserved port, but, it's the only working method for us to use active checks without configuring different firewall on the different place.

        Thanks.

        Comment

        • Finger
          Junior Member
          • Feb 2008
          • 4

          #5
          Hi,

          Here is the line to modify :

          {"ServerPort", &CONFIG_SERVER_PORT, 0,TYPE_INT, PARM_OPT, 20,32767},

          I Modify this line, but I haven't got lot of "ideas" on how to compile Windows Agent, can anyone help me ?

          Update : I read that we have to use Visual studio for compiling the client, can anyone compile it for me ? because I don't have this licence ...

          Thanks per advance.

          Finger

          Comment

          Working...