Ad Widget

Collapse

Host Name Case Sensitive ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maruscya
    Senior Member
    Zabbix Certified Specialist
    • Jul 2007
    • 129

    #1

    Host Name Case Sensitive ?

    Hello Guys..

    after upgrade, some host stop sending data. After some test, the problem seem a hostname.

    homer etc # zabbix_sender -vv -z ****.**********.net -p 5001 -s mailgateway -k agent.version -o 1
    zabbix_sender [18141]: DEBUG: Answer [{
    "response":"success",
    "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000774"}]
    Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000774"
    sent: 1; skipped: 0; total: 1
    homer etc # zabbix_sender -vv -z ****.**********.net -p 5001 -s Mailgateway -k agent.version -o 1
    zabbix_sender [18150]: DEBUG: Answer [{
    "response":"success",
    "info":"Processed 1 Failed 0 Total 1 Seconds spent 0.006914"}]
    Info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.006914"
    sent: 1; skipped: 0; total: 1
    In the first case zabbix_sender report 1 error...

    Could you confirm that the hostname is now case sensitive ??

    AndreA
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    I was pretty sure the host names were always case sensitive in both 1.4.x and 1.6.x
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • maruscya
      Senior Member
      Zabbix Certified Specialist
      • Jul 2007
      • 129

      #3
      Originally posted by Alexei
      I was pretty sure the host names were always case sensitive in both 1.4.x and 1.6.x
      I don't no why, but in 1.4.5 hostname is "MailGateway" on agent side.... but on server is "mailgateway" (it is a real example !! )

      And all works fine.

      IMHO is not a real problem, but is only a question, because some hosts stop sending data after upgrade... I 'll rename all hosts asap.

      I made the same question during the training ... (4 & 5 of March) and your answer is "....mmmm .... i think ! .."

      anyway... thank for your good job!

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Mmmmm ... I think the answer depends on how database engine handles operator '='.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • ad@kbc-clearing.com
          Member
          • Sep 2005
          • 77

          #5
          We use MYSQL/InnoDB and migrated recently from 1.4.2 to 1.6

          I don't think this issue is caused by the DBengine; this has not changed during the migration.
          In 1.4.2 we had no problems.
          In 1.6 we found, that not only hostname but also key is case-sensitive.

          Renaming our hosts to all lowercase is not an option.

          Comment

          • maruscya
            Senior Member
            Zabbix Certified Specialist
            • Jul 2007
            • 129

            #6
            I'm starting migration hosts from "mixed case" to "lower case" .

            This is not a good solution, but imho is it the only way !

            AndreA

            Comment

            • ad@kbc-clearing.com
              Member
              • Sep 2005
              • 77

              #7
              We just renamed all hosts to lowercase (sql update query) -> no more problems.
              Not happy with that, but i'm afraid the only option.

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #8
                Case sensitivity depends on settings of your database only. I do not believe that upgrade from 1.4.x to 1.6.x affected this in any way. Blame your database or database admin.
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • Calimero
                  Senior Member
                  • Nov 2006
                  • 481

                  #9
                  Originally posted by Alexei
                  Case sensitivity depends on settings of your database only. I do not believe that upgrade from 1.4.x to 1.6.x affected this in any way. Blame your database or database admin.
                  I have to disagree.

                  Code:
                  if (0 == strcmp(item.host_name, values[i].host_name) && 0 == strcmp(item.key_orig, values[i].key))
                  That's line 216 of trapper.c (v1.6.1)

                  And that means that both hostname and key indeed are case sensitive, regardless of database engine (which could also be case-sensitive of course).

                  Comment

                  Working...