[smokeping-users] Problem with AJAX

Tobias Oetiker tobi at oetiker.ch
Tue Feb 12 11:03:49 CET 2008


Hi Lai,

try this:

Index: Smokeping.pm
===================================================================
--- Smokeping.pm        (revision 929)
+++ Smokeping.pm        (working copy)
@@ -624,11 +624,11 @@
         if ($tree->{$key}{__tree_link} and $tree->{$key}{__tree_link}{menu}){
                $menu = $tree->{$key}{__tree_link}{menu};
                $title = $tree->{$key}{__tree_link}{title};
-                next if $tree->{$key}{__tree_link}{hide} eq 'yes';
+                next if $tree->{$key}{__tree_link}{hide} and $tree->{$key}{__tree_link}{hide} eq 'yes';
                } elsif ($tree->{$key}{menu}) {
                $menu = $tree->{$key}{menu};
                $title = $tree->{$key}{title};
-                next if $tree->{$key}{hide} eq 'yes';
+                next if $tree->{$key}{hide} and $tree->{$key}{hide} eq 'yes';
         };

                my $class = 'menuitem';


but note that this is only a warning, it is unlikely that it is causing the zoomer to fail ...

cheers
tobi


> Hi all
>
> Just gotten 2.3.0 working.
>
> I tried going into the AJAX page to view a particular host.
>
> Below is the error I got from Apache.
>
> [Tue Feb 12 08:30:17 2008] [error] [client 10.250.9.204] [Tue Feb 12 08:30:17 2008] smokeping.cgi [client 10.250.9.204]:
> Use of uninitialized value in string eq at /opt/smokeping/lib/Smokeping.pm line 631., referer:
> http://10.250.1.105/cgi-bin/smokeping.cgi?target=Hosts.TMGSYD_TT_WAN_Router
>
> Seems to be a problem in Smokeping.pm
>
> Lai
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902



More information about the smokeping-users mailing list