Ad Widget

Collapse

Delete host group impossible

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vinny
    Senior Member
    • Jan 2008
    • 145

    #1

    Delete host group impossible

    Hi all,
    I have zabbix 1.6.1 binary & GUI, running with a Postgres DB.

    it is impossible for me via the GUI to delete a host group :
    * creation : ok
    * deletion : not ok

    the pb seems to be in the include/hosts.inc.php...

    the code to delete a group is localized at the end :
    Code:
    return DBexecute('DELETE FROM groups WHERE '.DBcondition('groupid',$groupids));
    It will work if i replace that by :
    Code:
    $tmp = DBexecute('DELETE FROM groups WHERE '.DBcondition('groupid',$groupids));
    Is it a local pb or a PHP one ?

    vinny
    Last edited by vinny; 19-11-2008, 12:05.
    -------
    Zabbix 1.8.3, 1200+ Hosts, 40 000+ Items...zabbix's everywhere
  • vinny
    Senior Member
    • Jan 2008
    • 145

    #2
    In fact, I patched the code of include/hosts.inc.php :

    Code:
                    if (!DBexecute('DELETE FROM groups WHERE '.DBcondition('groupid',$groupids)))
                            return false;
                    else
                            return true;
                    //return DBexecute('DELETE FROM groups WHERE '.DBcondition('groupid',$groupids));

    Now it works.

    I faced a really weird problem with the user group....
    I cannot add more than 3 users to a group : error message in the web interface BUT no detail available....

    vinny
    Last edited by vinny; 20-11-2008, 12:49.
    -------
    Zabbix 1.8.3, 1200+ Hosts, 40 000+ Items...zabbix's everywhere

    Comment

    Working...