Ad Widget

Collapse

Replace IP by hostname in the agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • opierre
    Junior Member
    • Oct 2005
    • 10

    #1

    Replace IP by hostname in the agent

    Hello,

    Is it possible to replace the IP of the server by a hostname like jdoe.myserver.com ?

    Is seems impossible now, is it planned for a news release ?

    Tank you in advance.

    Oliver
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    At present, no, though there are two patches floating around that provide this feature.
    Unofficial Zabbix Developer

    Comment

    • opierre
      Junior Member
      • Oct 2005
      • 10

      #3
      Thank you for the quick answer

      Do you know where these patchs could be ? I couldn't find anything.

      Comment

      • James Wells
        Senior Member
        • Jun 2005
        • 664

        #4
        Originally posted by opierre
        Do you know where these patchs could be ? I couldn't find anything.
        I posted one to the forums here about a month ago, and the original, which I based mine off of, was over on Sourceforge in the patches section for Zabbix.
        Unofficial Zabbix Developer

        Comment

        • opierre
          Junior Member
          • Oct 2005
          • 10

          #5
          I found this post http://www.zabbix.com/forum/showthread.php?t=1280

          where you submitted a patch for zabbix 1.1alpha12
          based on this http://sourceforge.net/tracker/index...94&atid=378685

          Can you tell me which one I should use ? And how ? (I'm using ZABBIX 1.1beta2)

          Should I use the patch on the server or the client or both ?

          Thank you for your help

          Oliver

          Edit : I found this one http://www.zabbix.com/forum/showthread.php?t=1290 but it looks like it's not finished, right ?
          Last edited by opierre; 25-10-2005, 21:09.

          Comment

          • James Wells
            Senior Member
            • Jun 2005
            • 664

            #6
            It's the third one, but I will have to look into it again. I had forgotten that there was an issue with it.

            Anyway, the patch is applied to the source code for the zabbix_agent, the agent is then recompiled and deployed as normal from there.
            Unofficial Zabbix Developer

            Comment

            • opierre
              Junior Member
              • Oct 2005
              • 10

              #7
              Thank you very much for your help.

              I'm in the same case as another user you helped before. I want my agent to connect to the server located on a adsl dynamic ip server, which causes problem when the ip changes

              I will write a php or shell script for the client which will check if the ip changes, and if so, rewrite the conf file and restart the agent

              I think it's the best way, what's your opinion ?

              regards

              Oliver

              Comment

              • James Wells
                Senior Member
                • Jun 2005
                • 664

                #8
                Okay, I just posted a fixed version in the Zabbix Patches forum if you want to give it a try.
                PATCH: Allow use of server Hostname or IP in agent config
                Unofficial Zabbix Developer

                Comment

                Working...