Ad Widget

Collapse

Getting updated versions of default templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahowell
    Member
    • Jan 2011
    • 66

    #1

    Getting updated versions of default templates

    Hi,

    I've been using zabbix 2.0 since 1.9.3 and I'd like to update my default templates and see if there are any examples in them I could use to improve my own templates.

    Can I get copies of them to import from anywhere?

    I'd rather not have to build a new zabbix 2.0 installation just to export the templates. Nor do I want to mess around trying to get them out of data.sql
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    we'll try to make 2.0 appliance available soon, so you could start it and export templates from there, although making the default templates available as a separate download would be a good thing anyway - i'll see what i could do about that
    Zabbix 3.0 Network Monitoring book

    Comment

    • ahowell
      Member
      • Jan 2011
      • 66

      #3
      Having them as a separate download would be great, thanks

      Comment

      • WernerCD
        Member
        • Apr 2011
        • 37

        #4
        Originally posted by richlv
        we'll try to make 2.0 appliance available soon, so you could start it and export templates from there, although making the default templates available as a separate download would be a good thing anyway - i'll see what i could do about that
        having to go through an appliance is a bit of a hassle, to say the least, for those who are simply upgrading.

        Personally I was saved by the fact that I originally thought I nuked my 1.8 database and started an install from scratch... I took a deep breath and went back and was able to successfully revert to my backup. That left me with a "clean" database AND an "updated" database.

        Long story short, I can simply change my web config file to point to the new database long enough to export the templates.

        Now... that's a LOT of work to get templates. More or less than downloading an appliance is hard to say.

        Why aren't the new templates included in a download? or a secondary Database update script (insert into tables the new templates)?

        I know it'll happen at some point, don't get me wrong. Zabbix is a great product. I know I'm not the only one who's upgrading and scratching my head trying to figure out where to get the new templates.

        I'v included my zipped XML files, exported from a clean install of Zabbix 2.0. Someone might find this useful. Maybe someone could post these, or sticky this post, for the mountain of people dying to get it
        Attached Files

        Comment

        • Robert Harris
          Junior Member
          • May 2012
          • 10

          #5
          Templates for newbies

          I have the bare 2.0 install with very minimal templates. I have found some .xml templates which look interesting and even the ones attached above, but is there a documented process for importing the new templates?

          Comment

          • WernerCD
            Member
            • Apr 2011
            • 37

            #6
            Originally posted by Robert Harris
            I have the bare 2.0 install with very minimal templates. I have found some .xml templates which look interesting and even the ones attached above, but is there a documented process for importing the new templates?
            I'm not 100% sure of where an "official" how-to is... I didn't see one on a quick scan of manual or wiki, although I could be blind.

            The way to import them tho... is to go to Configuration > Templates and click the "Import" button, top right corner.

            Click file... and either leave everything check, or change the choices as needed.

            Comment

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

              #7
              ...aaaaaaand https://zabbix.org/wiki/Zabbix_Templ...s#Zabbix_2.0.0
              Zabbix 3.0 Network Monitoring book

              Comment

              • WernerCD
                Member
                • Apr 2011
                • 37

                #8
                Originally posted by richlv
                Awesome job Either awesome job posting them, or awesome job finding that which is buried in a place I didn't know existed

                Comment

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

                  #9
                  if you look at the history of that page, it's very fresh, so nope, didn't exist before
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • tchjts1
                    Senior Member
                    • May 2008
                    • 1605

                    #10
                    Unfortunately, import is not working. I tried to import the Tomcat JMX template into our 2.0.0 stable setup...

                    Created: Application "http-8080" on "Template JMX Tomcat".
                    Created: Application "http-8443" on "Template JMX Tomcat".
                    Created: Application "jk-8009" on "Template JMX Tomcat".
                    Created: Application "Sessions" on "Template JMX Tomcat".
                    Created: Application "Tomcat" on "Template JMX Tomcat".
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Array to string conversion [include/classes/db/DB.php:394]
                    Error in query [INSERT INTO items (name,type,snmp_community,multiplier,snmp_oid,dela y,history,trends,status,value_type,units,delta,snm pv3_securityname,snmpv3_securitylevel,snmpv3_authp assphrase,snmpv3_privpassphrase,formula,delay_flex ,params,ipmi_sensor,data_type,authtype,username,pa ssword,publickey,privatekey,port,description,inven tory_link,key_,trapper_hosts,hostid,flags,interfac eid,itemid) VALUES ('http-8080 bytes received per second','16',Array,'0',Array,'60','7','365','0','0 ','B','1',Array,'0',Array,Array,'1',Array,Array,Ar ray,'0','0',Array,Array,Array,Array,'0',Array,'0', 'jmx[\"Catalina:type=GlobalRequestProcessor,name=htt p-8080\",bytesReceived]',Array,'10065','0',NULL,22900)] [Unknown column 'Array' in 'field list']
                    SQL statement execution has failed "INSERT INTO items (name,type,snmp_community,multiplier,snmp_oid,dela y,history,trends,status,value_type,units,delta,snm pv3_securityname,snmpv3_securitylevel,snmpv3_authp assphrase,snmpv3_privpassphrase,formula,delay_flex ,params,ipmi_sensor,data_type,authtype,username,pa ssword,publickey,privatekey,port,description,inven tory_link,key_,trapper_hosts,hostid,flags,interfac eid,itemid) VALUES ('http-8080 bytes received per second','16',Array,'0',Array,'60','7','365','0','0 ','B','1',Array,'0',Array,Array,'1',Array,Array,Ar ray,'0','0',Array,Array,Array,Array,'0',Array,'0', 'jmx[\"Catalina:type=GlobalRequestProcessor,name=htt p-8080\",bytesReceived]',Array,'10065','0',NULL,22900)".
                    Last edited by tchjts1; 05-06-2012, 18:11.

                    Comment

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

                      #11
                      well, damn. i'm getting the same. https://support.zabbix.com/browse/ZBX-5136
                      Zabbix 3.0 Network Monitoring book

                      Comment

                      • tchjts1
                        Senior Member
                        • May 2008
                        • 1605

                        #12
                        Originally posted by richlv
                        well, damn. i'm getting the same. https://support.zabbix.com/browse/ZBX-5136
                        Hey Rich. LTNS.

                        Thanks for opening the bug. BTW, I also tried other templates and get the same error.

                        Jeff

                        Comment

                        • Robert Harris
                          Junior Member
                          • May 2012
                          • 10

                          #13
                          rich: many thanks for the post, I'll be watching these templates and pulling in the appropriate.

                          Any guesses on this thread: http://www.zabbix.com/forum/showthread.php?t=26585 (somewhat related as I'm trying to get data imported for an NGINX template).

                          Comment

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

                            #14
                            arrgh. looks like 2.0.0 expects <tag/> in some places and <tag></tag> in other places, making template formatting a great pain. 2.0.1 should fix that, but for 2.0.0... i give up for now, maybe i'll return to this later :>
                            Zabbix 3.0 Network Monitoring book

                            Comment

                            • frlan
                              Junior Member
                              • May 2012
                              • 18

                              #15
                              I can verify this error.

                              Comment

                              Working...