Ad Widget

Collapse

Zabbix 1.1beta1 Add items from template dosen't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jporter1
    Junior Member
    • Aug 2005
    • 18

    #16


    Still the same I'm afraid. I click to 'add items from template' and nothing happens - just a page refresh.

    I've completely replaced the frontends directory on the webserver and it definitely shows beta2 in the status bar . . . .

    Comment

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

      #17
      Are you sure you replaced all files?
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • onslo
        Junior Member
        • Sep 2005
        • 21

        #18
        Can you link to the cvs download please ?

        Thanks

        Comment

        • jporter1
          Junior Member
          • Aug 2005
          • 18

          #19
          Download Zabbix for free. Enterprise-class, distributed monitoring solution for networks & apps. Zabbix is an enterprise-class open source distributed monitoring solution designed to monitor and track performance and availability of network servers, devices and other IT resources. It supports distributed and WEB monitoring, auto-discovery, and more.



          Yep. Even re-ran an entire re-configure,make, make install of the main program (not that that would make any difference I know but I didn't have many hosts added anyway), I dropped the mysql database and recreated it all from the cvs tree. Then deleted my webserver directory and recopied the php directory from my CVS version. I have the following most recent files:

          Oct 4 17:22 hosts.php
          Oct 3 16:35 config.php

          Comment

          • jporter1
            Junior Member
            • Aug 2005
            • 18

            #20
            After I click to add items from template the following mysql query is made (don't know if that helps)

            051005 10:10:46 16 Connect zabbix@localhost on
            16 Init DB zabbix
            16 Init DB zabbix
            16 Query select u.userid,u.alias,u.name,u.surname,u.lang from sessions s,users u where s.sessionid='12497e872f3cd3ac6df8eb2860305b32' and s.userid=u.userid and ((s.lastaccess+u.autologout>1128503446) or (u.autologout=0))
            16 Query update sessions set lastaccess=1128503446 where sessionid='12497e872f3cd3ac6df8eb2860305b32'
            16 Query select value from profiles where userid=3 and idx='web.menu.view.last'
            16 Query select value from profiles where userid=3 and idx='web.menu.cm.last'
            16 Query select value from profiles where userid=3 and idx='web.menu.reports.last'
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Configuration of Zabbix' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Default permission' and id!=0 and userid=3
            16 Query select value from profiles where userid=3 and idx='web.menu.config.last'
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Configuration of Zabbix' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='User' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Audit' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Host' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Host' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Host' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Network map' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Graph' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Screen' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Service' and id!=0 and userid=3
            16 Query select permission from rights where name='Default permission' and userid=3
            16 Query select permission from rights where name='Host' and id!=0 and userid=3
            16 Query select value from profiles where userid=3 and idx='web.hosts.config'
            16 Query select value from profiles where userid=3 and idx='web.hosts.config'
            16 Query update profiles set value='0' where userid=3 and idx='web.hosts.config'
            16 Query select value from profiles where userid=3 and idx='web.menu.config.last'
            16 Query update profiles set value='hosts.php' where userid=3 and idx='web.menu.config.last'
            16 Query select value from profiles where userid=3 and idx='HOST_PORT'
            16 Query select distinct groupid,name from groups order by name
            16 Query select count(*) as count from hosts_groups where hostid=10008 and groupid=2
            16 Query select count(*) as count from hosts_groups where hostid=10008 and groupid=1
            16 Query select host,hostid from hosts where status not in (4) order by host
            16 Query select * from hosts_profiles where hostid=10008

            Comment

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

              #21
              Can you find string "sync_items_with_template_host" in your hosts.php? Just to double-check you're using the latest one...
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • jporter1
                Junior Member
                • Aug 2005
                • 18

                #22
                Hmmm, no this is very strange. Also, now when I browse the CVS repository online I can see the updated hosts.php with the correct timestamp (today, this mornig 4 hours ago) I didn't see this before and clearly my cvs download (see file dates above was out). There's no such thing as a cvs caching server is there?! Or is there a delay between you uploading the files and them appearing to the public?

                I'm off to try the updated hosts.php but no doubt it will work so thanks again for all your work.

                UPDATE: IT'S WORKING. Much appreciated.
                Last edited by jporter1; 05-10-2005, 14:59.

                Comment

                • erisan500
                  Senior Member
                  Zabbix Certified Specialist
                  • Aug 2005
                  • 285

                  #23
                  There is a delay. Out of experience there is a delay of about 4 hours before the developer and public cvs is in sync.

                  Quote from the sourceforge.net website:
                  SourceForge.net maintains two pools of CVS servers; one for developer CVS access and one for all other CVS services. Data is synchronized between the developer server pool and the other server pool periodically. Currently, there is a delay of at most 5 hours between the developer and anonymous CVS server pools. CVS infrastructure work is pending to mitigate this delay.
                  EriSan
                  Zabbix Certified Specialist

                  Comment

                  • dhackd
                    Junior Member
                    • Sep 2005
                    • 14

                    #24
                    CVS Usage

                    This will be the first time that I have used CVS.. I was able to download the HOSTS.PHP and replaced the existing file. But I try to add the items from the template, I just get the top menu and a blank screen.

                    I know it has something to do with needing more files.. or something..

                    If you can assist me in the downloading of all the files from the CVS, I think I will be ready to go.

                    Thank you again!!!

                    Comment

                    • marc
                      Senior Member
                      • Oct 2004
                      • 146

                      #25
                      i can acknowledge that half of the work is done. items are cloned now. but were are all the triggers? seems like they are still not taken from template.
                      alexei can you explain how host/template linkage is working or is it broken too? i take a host1 and link it to another host2(template), the page is being updated and it shows all linkage i've selected. on the items/trigger page from host1 nothing is displayed. what am i doing wrong?

                      to dhackd

                      Originally posted by dhackd
                      This will be the first time that I have used CVS.. I was able to download the HOSTS.PHP and replaced the existing file. But I try to add the items from the template, I just get the top menu and a blank screen.

                      I know it has something to do with needing more files.. or something..

                      If you can assist me in the downloading of all the files from the CVS, I think I will be ready to go.

                      Thank you again!!!
                      read this http://sourceforge.net/cvs/?group_id=23494 (the section anonymous cvs access)
                      Last edited by marc; 05-10-2005, 17:09.

                      Comment

                      • jporter1
                        Junior Member
                        • Aug 2005
                        • 18

                        #26
                        Originally posted by marc
                        alexei can you explain how host/template linkage is working or is it broken too
                        I agree I've noticed the graph linkage is still broken.

                        If you create a the linkage from host.1 to host.template and then add a graph to the host.template it correctly adds a graph to host.1

                        but if you then add a new host.2 and link the graphs you only get the graphs created for new graphs that are added to host.template you don't get all the current ones (i.e. those already added to host.1)

                        This means you would have to add all your hosts before you created even the first host.template graph.

                        Also if you change an element of the host.template graph for example a line type/colour it is not reflected in the host.1 and host.2 graphs
                        Last edited by jporter1; 06-10-2005, 11:17.

                        Comment

                        • dhackd
                          Junior Member
                          • Sep 2005
                          • 14

                          #27
                          Originally posted by dhackd
                          Thank you again!!!
                          I was able to add all of the "ITEMS" but non of the triggers were added.

                          Comment

                          • billbob
                            Junior Member
                            • Oct 2005
                            • 3

                            #28
                            The trigger linkage don't work,
                            I can't delete or modify a trigger from a template to update all hosts triggers linked.

                            more over, when i use "add items from template" to synchonize triggers and items from a template, only items are updated, is it normal ?

                            Did i forget to apply a patch to make a triggers template?
                            Edit/Delete Message

                            Comment

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

                              #29
                              Anyone else to confirm this?
                              Alexei Vladishev
                              Creator of Zabbix, Product manager
                              New York | Tokyo | Riga
                              My Twitter

                              Comment

                              • nesvarbu
                                Junior Member
                                • Oct 2005
                                • 5

                                #30
                                Originally posted by Alexei
                                Anyone else to confirm this?
                                I can confirm that triggers is not added when you doing add items from template.

                                Comment

                                Working...