Ad Widget

Collapse

Zabbix Database Relation Schema

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sauron
    Senior Member
    • Jan 2005
    • 215

    #1

    Zabbix Database Relation Schema

    I'm think this may useful.
    Attached Files
  • jherazob
    Junior Member
    • Sep 2011
    • 20

    #2
    Is this still valid in recent versions (1.8+)?

    A cursory look shows me that there's quite a few tables not shown there (11 in the diagram, 88 on the database), so i don't know if this was an intentional omission (only focus on the few that really matter) or if it's outdated (it's several years old after all)

    Comment

    • nelsonab
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2006
      • 1233

      #3
      :-) The original post was from 2006. A lot has changed since then.
      RHCE, author of zbxapi
      Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
      Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

      Comment

      • jherazob
        Junior Member
        • Sep 2011
        • 20

        #4
        Is there a more recent one?

        I've been looking and all i've found is this one, i suspect my search skills have failed me

        Comment

        • nelsonab
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2006
          • 1233

          #5
          They haven't failed you... it's just a somewhat daunting task to keep up to date. Ideally there should be a dot file from which a diagram can be generated.
          RHCE, author of zbxapi
          Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
          Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

          Comment

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

            #6
            note that it might be a bit easier in 2.0, as you can use foreign keys to auto-generate most of it and just finish the few remaining issues (like screen element ref ids)
            Zabbix 3.0 Network Monitoring book

            Comment

            • Fof
              Junior Member
              • Oct 2008
              • 9

              #7
              Originally posted by nelsonab
              :-) The original post was from 2006. A lot has changed since then.
              Hi everybody,

              I am trying to do a logical link between two tables in the database:
              - users
              - hosts

              I have made a draft of the database structure but I cannot link the two tables above. Could you help me please ?

              Thanks.

              Comment

              • Fof
                Junior Member
                • Oct 2008
                • 9

                #8
                Originally posted by Fof
                Hi everybody,

                I am trying to do a logical link between two tables in the database:
                - users
                - hosts

                I have made a draft of the database structure but I cannot link the two tables above. Could you help me please ?

                Thanks.
                Here is my current draft of my try to perfom a reverse engineering. Perhaps, it could help someone else to use the zabbix DB.

                I am still trying to join the table "users" with the table "hosts"...
                Last edited by Fof; 07-02-2013, 14:09.

                Comment

                • opd0
                  Junior Member
                  • Feb 2013
                  • 1

                  #9
                  I would also be interested in understanding the database structure.

                  Comment

                  • heaje
                    Senior Member
                    Zabbix Certified Specialist
                    • Sep 2009
                    • 325

                    #10
                    Originally posted by Fof
                    I am still trying to join the table "users" with the table "hosts"...
                    The "users" table won't join directly to the "hosts" table. Host/Hostgroup permissions are applied to user groups, not users directly.

                    Comment

                    • Fof
                      Junior Member
                      • Oct 2008
                      • 9

                      #11
                      Originally posted by heaje
                      The "users" table won't join directly to the "hosts" table. Host/Hostgroup permissions are applied to user groups, not users directly.
                      Thanks a lot.

                      Here is a dedicated post:

                      Comment

                      • qix
                        Senior Member
                        Zabbix Certified SpecialistZabbix Certified Professional
                        • Oct 2006
                        • 423

                        #12
                        For anyone finding this thread looking for the schema, an updated version is now on the Wiki:

                        www.zabbix.org/wiki/Database_Schemas
                        With kind regards,

                        Raymond

                        Comment

                        • Fof
                          Junior Member
                          • Oct 2008
                          • 9

                          #13
                          Originally posted by qix
                          For anyone finding this thread looking for the schema, an updated version is now on the Wiki:

                          www.zabbix.org/wiki/Database_Schemas
                          Thanks

                          Comment

                          • SRkr
                            Junior Member
                            • Mar 2019
                            • 1

                            #14
                            Is there a DB schema diagram or Entity Relationship diagram available for Zabbix 4.0?

                            Comment

                            Working...