Release of Cacti 0.8.7g

Important information about Cacti developments that all users should be interested in.

Moderators: Developers, Moderators

hipster
Posts: 30
Joined: Thu Mar 16, 2006 7:54 am

Re: Release of Cacti 0.8.7g

Post by hipster »

Hi,

I have upgraded my cacti installation to 0.8.7g. Everything else has worked like a charm. Now I noticed that there is no way to update/change <i>Graph Grouping Style</i> for host item. There where no error messages in GUI nor logs. After some investigation I did this change:

from api_tree.php line60

OLD ->
<code>
if (($type == TREE_ITEM_TYPE_HOST) && (sizeof(db_fetch_assoc($qs = "select id from graph_tree_items where host_id='$host_id' and local_graph_id='$local_graph_id' and graph_tree_id='$tree_id' and order_key like '$search_key" . str_repeat('_',
CHARS_PER_TIER) . str_repeat('0', (MAX_TREE_DEPTH * CHARS_PER_TIER) - (strlen($search_key) + CHARS_PER_TIER)) . "'")) > 0)) {
</code>
New ->
<code>
if (($type == TREE_ITEM_TYPE_HOST) && (sizeof(db_fetch_assoc($qs = "select id from graph_tree_items where host_id='$host_id' and local_graph_id='$local_graph_id' and graph_tree_id='$tree_id' and order_key like '$search_key" . str_repeat('_',
CHARS_PER_TIER) . str_repeat('0', (MAX_TREE_DEPTH * CHARS_PER_TIER) - (strlen($search_key) + CHARS_PER_TIER)) . "'")) > 1)) {

</code>

That modification did the trick. I tested it few times and didn't find anything broken or making duplicates. Maybe I find it later... Has anybody else ran into this kind of problem?
hipster
Posts: 30
Joined: Thu Mar 16, 2006 7:54 am

Re: Release of Cacti 0.8.7g

Post by hipster »

Yep. now I'm able to add duplicate hosts in graph tree. I'll change the code back to original. Obviously I have to find some other way to fix this situation.

Is it really so that I'm the only one suffering from this? I'm not able to change "Sorting Type" from:

Console -> Graph Trees -> (Edit) -> Graph Tree Items ->> Tree Items -> Sorting Type (select from list) and Save.
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Re: Release of Cacti 0.8.7g

Post by stormonts »

hipster, I too am unable to change the sorting type after upgrading to .8.7g. Did you find an answer?
Syngress
Posts: 26
Joined: Tue Apr 24, 2007 9:17 am

Re: Release of Cacti 0.8.7g

Post by Syngress »

I did an upgrade of cacti from 0.87e to g last night, and I have noticed in Google Chrome a border has appeared along the top and down the left hand side. This doesn't show in FF 4.0.1 - Is there a fix for this?

Thanks,

Mike

[attachment=0]Cacti.JPG[/attachment]
Attachments
Cacti.JPG
Cacti.JPG (14.64 KiB) Viewed 5213 times
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Release of Cacti 0.8.7g

Post by noname »

>> I did an upgrade of cacti from 0.87e to g last night,
>> and I have noticed in Google Chrome a border has appeared along the top and down the left hand side.
>> This doesn't show in FF 4.0.1 - Is there a fix for this?

Probably an official patch 'html_output.patch' for 0.8.7g will fix that issue.
Apply it and all other patches.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests