Ad Widget

Collapse

Zabbix 1.7.0 - Profiles and Favorites in Dashboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #1

    Zabbix 1.7.0 - Profiles and Favorites in Dashboard

    I can only create this issue in a DM environment. If a user is on the central or master node (without subnodes showing) and goes to a chart and clicks on the "+" to make it a favorite, it will save correctly to a user's profile and can viewed under the "Dashboard". If a user changes to a child node and goes to a chart and clicks on the "+" to make it a favorite, it will erase the previous favorites from the central or master node. Here is patch to fix the issue:

    Code:
    diff -ruN zabbix.previous.20090428_2236/include/profiles.inc.php zabbix/include/profiles.inc.php
    --- zabbix.previous.20090428_2236/include/profiles.inc.php      2009-04-08 14:14:20.000000000 -0400
    +++ zabbix/include/profiles.inc.php     2009-05-06 07:30:24.000000000 -0400
    @@ -124,7 +124,7 @@
    
                    $sql='DELETE FROM profiles '.
                            ' WHERE userid='.$USER_DETAILS["userid"].
    -                               ' AND idx='.zbx_dbstr($idx).
    +                               ' AND idx='.zbx_dbstr($idx).' AND '.DBin_node('profileid').
                                    $sql_cond;
    
                    DBstart();
    @@ -138,7 +138,7 @@
                    $sql = 'SELECT profileid '.
                                    ' FROM profiles '.
                                    ' WHERE userid='.$USER_DETAILS['userid'].
    -                                       ' AND idx='.zbx_dbstr($idx).
    +                                       ' AND idx='.zbx_dbstr($idx).' AND '.DBin_node('profileid').
                                            $sql_cond;
    
                    $row = DBfetch(DBselect($sql));
    @@ -172,7 +172,7 @@
                                            ' type='.$type.','.
                                            ' source='.zbx_dbstr($src).
                                    ' WHERE userid='.$USER_DETAILS["userid"].
    -                                       ' AND idx='.zbx_dbstr($idx).
    +                                       ' AND idx='.zbx_dbstr($idx).' AND '.DBin_node('profileid').
                                            $sql_cond;
     //if($idx == 'web.audit.filter.action') SDI($sql);
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #2
    Thank you will be fixed with next commit.
    Zabbix | ex GUI developer

    Comment

    Working...