<div id="_htmlarea_default_style_" style="font:10pt arial,helvetica,sans-serif"><DIV>Hi</DIV>
<DIV>I upgraded to 2.3.2 (used 2.3.1) and now it works find :-)</DIV>
<DIV> </DIV>
<DIV>Thanx</DIV>
<DIV> </DIV>
<DIV>RuneT<BR><BR>On Mon, 25 Feb 2008 11:08:53 +0100 (CET)<BR>Tobias Oetiker <TOBI@OETIKER.CH>wrote:<BR>> Hi RuneT,<BR>> <BR>> try this patch:<BR>> <BR>> I have fixed the demo site<BR>> <BR>> Index: Smokeping.pm<BR>> ===================================================================<BR>> --- Smokeping.pm (revision 936)<BR>> +++ Smokeping.pm (working copy)<BR>> @@ -401,7 +401,7 @@<BR>> if (ref $tree->{$prop} eq 'HASH'){<BR>> add_targets $cfg, $probes, $tree->{$prop}, <BR>>"$name/$prop";<BR>> }<BR>> - if ($prop eq 'host' and $tree->{nomasterpoll} <BR>>eq 'no' and check_filter($cfg,$name) and $tree->{$prop} <BR>>!~ m|^/| ) {<BR>> + if ($prop eq 'host' and ( not <BR>>$tree->{nomasterpoll} or $tree->{nomasterpoll} eq 'no') <BR>>and check_filter($cfg,$name) and $tree->{$prop} !~ m|^/| <BR>>) {<BR>> if($tree->{host} =~ /^DYNAMIC/) {<BR>> $probeobj->add($tree,$name);<BR>> } else {<BR>> @@ -750,7 +750,7 @@<BR>> next unless $phys_tree->{host};<BR>> next if $phys_tree->{hide} and $phys_tree->{hide} <BR>>eq 'yes';<BR>> <BR>> - if ($phys_tree->{nomasterpoll} eq 'no'){<BR>> + if (not $phys_tree->{nomasterpoll} or <BR>>$phys_tree->{nomasterpoll} eq 'no'){<BR>> @slaves = ("");<BR>> };<BR>> <BR>> @@ -973,7 +973,7 @@<BR>> $tree = $phys_tree;<BR>> <BR>> my @slaves;<BR>> - if ($tree->{nomasterpoll} eq 'no'){<BR>> + if (not $tree->{nomasterpoll} or <BR>>$tree->{nomasterpoll} eq 'no'){<BR>> @slaves = ("");<BR>> };<BR>> <BR>> @@ -1468,9 +1468,9 @@<BR>> $print .=
"</DIV>
<DIV id=hierarchy_popup>";<BR>> $print .= $q->popup_menu(-name=>'hierarchy',<BR>> -onChange=>'hswitch.submit()',<BR>> - -values=>['', sort <BR>>map {ref $cfg->{Presentation}{hierarchies}{$_} eq 'HASH'<BR>> + -values=>[0, sort <BR>>map {ref $cfg->{Presentation}{hierarchies}{$_} eq 'HASH'<BR>> ? $_ : <BR>>() } keys %{$cfg->{Presentation}{hierarchies}}],<BR>> - <BR>> -labels=>{''=>'Default <BR>>Hierarchy',<BR>> + <BR>> -labels=>{0=>'Default <BR>>Hierarchy',<BR>> map {ref <BR>>$cfg->{Presentation}{hierarchies}{$_} eq 'HASH'<BR>> ? <BR>>($_ => $cfg->{Presentation}{hierarchies}{$_}{title} )<BR>> : () <BR>>} keys %{$cfg->{Presentation}{hierarchies}}<BR>> @@ -1495,7 +1495,7 @@<BR>> my ($path,$slave) = split(/~/,$q->param('target') || <BR>>'');<BR>> my $hierarchy = $q->param('hierarchy');<BR>> die "ERROR: unknown hierarchy $hierarchy\n"<BR>> - if not $cfg->{Presentation}{hierarchies} and <BR>>$cfg->{Presentation}{hierarchies}{$hierarchy};<BR>> + if $hierarchy and not <BR>>$cfg->{Presentation}{hierarchies}{$hierarchy};<BR>> my $open = [ (split /\./,$path||'') ];<BR>> my $open_orig = [@$open];<BR>> $open_orig->[-1] .= '~'.$slave if $slave;<BR>> @@ -1521,7 +1521,7 @@<BR>> };<BR>> if (not $charts){<BR>> for (@$open) {<BR>> - die "ERROR: Section '$_' does not exist <BR>>(display webpage).\n"<BR>> + die "ERROR: Section '$_' does not exist <BR>>(display webpage)." # .(join "", map {"$_=$ENV{$_}"} <BR>>keys %ENV)."\n"<BR>> unless exists $tree->{$_};<BR>> last unless ref $tree->{$_} eq 'HASH';<BR>> $tree = $tree->{$_};<BR>> @@ -1852,7 +1852,7 @@<BR>> my %slave_test;<BR>> my $slaveupdates;<BR>> my @updates;<BR>> - if ($tree->{nomasterpoll} eq 'no'){<BR>> + if (not $tree->{nomasterpoll} or <BR>>$tree->{nomasterpoll} eq 'no'){<BR>> @updates = ([ "", time, <BR>>$probeobj->rrdupdate_string($tree) ]);<BR>> }<BR>> if ($tree->{slaves}){<BR>> <BR>> <BR>> <BR>> <BR>> Today gizze@c2i.net wrote:<BR>> <BR>>> Hi<BR>>> Is it just for me or have zoom stop working on Demosite. <BR>>>I got a blank frame after I have mark what I would zoom <BR>>>for.<BR>>> <BR>>> RuneT<BR>>><BR>>><BR>> <BR>> -- <BR>> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 <BR>>Olten<BR>> http://it.oetiker.ch tobi@oetiker.ch ++41 62 213
9902<BR><BR></DIV></div>