SQL error while exporting graph

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: None
    • Component/s: Frontend (F)
    • None
    • Environment:
      Zabbix 1.4.4, Postgres 7.4, Debian 4.0

      I've tried the Export/Import functionnality to export graphs. I got the following messages :

      • pg_query() [function.pg-query]: Query failed: ERREUR: La colonne "g.name" doit apparaître dans la clause GROUP BY ou doit être utilisé dans une fonction d'aggrégat[/data/inetpub/wwwroot/zabbix/include/db.inc.php:293]
      • Error in query [select g.name as info, i.hostid, count(distinct i.hostid) as cnt from graphs_items gi, items i, graphs g where g.graphid=gi.graphid and gi.itemid=i.itemid group by gi.graphid, i.hostid] [ERREUR: La colonne "g.name" doit apparaître dans la clause GROUP BY ou doit être utilisé dans une fonction d'aggrégat]
      • pg_fetch_array() expects parameter 1 to be resource, boolean given[/data/inetpub/wwwroot/zabbix/include/db.inc.php:414]

      ERREUR: La colonne "g.name" doit apparaître dans la clause GROUP BY ou doit être utilisé dans une fonction d'aggrégat
      > ERROR : "g.name" column must appear in GROUP BY or in aggregate

      http://www.zabbix.com/forum/showthread.php?t=9194

            Assignee:
            Alexei Vladishev
            Reporter:
            Houssay Gwenaelle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: