View Full Version : Zabbix 1.1beta1 Add items from template dosen't work
When i create new host, edit it properties and try to add items from template nothing is added to host. With alpha12 this worked fine. No error is given it only returns to same page
Is it a bug or am i missing something.
Thanks
I've got several reports regarding this issue. It seems that it doesn't work in 1.1beta1. Sorry for this.
jporter1
21-09-2005, 13:39
That's alright, we'll forgive you - just tell us when you plan to fix it :D
I'd like to release 1.1beta2 shortly after I get all (including this one) 1.1beta1 issues reported and fixed.
Will try to make it as stable and easy to use as possible.
bbrendon
26-09-2005, 23:34
Being that I just started using zabbix. I messed with alpha12 and upgraded to beta1 and now i'm stuck because this bug is preventing me from adding hosts. any chance to release beta1.1 before beta2 with this problem fixed so we can use it?
The major bugs i have experienced are:
-This one
-win32 agent + event logs (discussed in other threads)
Being that I just started using zabbix. I messed with alpha12 and upgraded to beta1 and now i'm stuck because this bug is preventing me from adding hosts. any chance to release beta1.1 before beta2 with this problem fixed so we can use it?
The major bugs i have experienced are:
-This one
-win32 agent + event logs (discussed in other threads)
Yes please a patch for this would be awesome!
thanks,
Harnak
jporter1
28-09-2005, 14:02
Whilist waiting for the official fix is there anything we can do that will allow us to add servers? How is everyone else working around this? Can we use one of the php pages from the alpha12 release for example? Thanks
Please wait for 1.1beta2. Hopefully it will be released next Monday.
jporter1
28-09-2005, 14:07
Will it appear in the CVS before then? Please say yes :)
Give me a couple of days to fix this issue. I'll keep you informed about any progress made. Yes, it will be available in CVS and possibly in this forum as well.
jporter1
28-09-2005, 14:13
Many thanks Alexei. Sorry to keep the pressure on ;)
Thanks!
This will sure releave some of the pressure my boss has put me under. ;)
Is it possible to do this manually via sql or is the problem elsewhere than the frontend?
Thanks,
Harnak
jporter1
03-10-2005, 11:28
Give me a couple of days to fix this issue. I'll keep you informed about any progress made.
Morning Alexei - any chance of that update please? :rolleyes:
Fixed. Download the latest frontends/php/* from CVS.
jporter1
05-10-2005, 09:52
:) :)
Thanks.
jporter1
05-10-2005, 10:23
:( :(
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 . . . .
Are you sure you replaced all files?
Can you link to the cvs download please ?
Thanks
jporter1
05-10-2005, 10:35
http://cvs.sourceforge.net/viewcvs.py/zabbix/zabbix/frontends/php/
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
jporter1
05-10-2005, 11:12
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
Can you find string "sync_items_with_template_host" in your hosts.php? Just to double-check you're using the latest one...
jporter1
05-10-2005, 14:48
:confused: 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. :)
erisan500
05-10-2005, 15:13
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.
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!!!
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
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)
jporter1
06-10-2005, 10:45
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
Thank you again!!!
I was able to add all of the "ITEMS" but non of the triggers were added.
:)
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
Anyone else to confirm this?
nesvarbu
13-10-2005, 21:14
Anyone else to confirm this?
I can confirm that triggers is not added when you doing add items from template. :(
Hi!
I can confirm this issue too.
So the triggers are not added to host.
If I create a host from a template, nor items, not triggers are added.
Later I can add items by "add items from template", but triggers are not added as well.