Ad Widget

Collapse

Error displaying images in 1.1beta5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • herr_bpl
    Junior Member
    • Jan 2006
    • 15

    #1

    Error displaying images in 1.1beta5

    Hi all.

    Following error occurs when drawing graphs (http://monitoring/zabbix/chart2.php?graphid=6&period=3600&from=0):

    Error in query [select itemid,round(900*((clock+2433)%(3600))/(3600),0) as i,count(*) as count,avg(value) as avg,min(value) as min,max(value) as max,max(clock) as clock from history where itemid in ( 17643,17644,17647) and clock>=1136377167 and clock<=1136380767 group by itemid,round(900*((clock+2433)%(3600))/(3600),0) union select itemid,round(900*((clock+2433)%(3600))/(3600),0) as i,count(*) as count,avg(value) as avg,min(value) as min,max(value) as max,max(clock) as clock from history_uint where itemid in ( 17643,17644,17647) and clock>=1136377167 and clock<=1136380767 group by itemid,round(900*((clock+2433)%(3600))/(3600),0)] [You have an error in your SQL syntax near 'union select itemid,round(900*((clock+2433)%(3600))/(3600),0) as i,count(*) as c' at line 1]
    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/zabbix/include/db.inc.php on line 109
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Version of MySQL?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • herr_bpl
      Junior Member
      • Jan 2006
      • 15

      #3
      Hello.

      mysql> status
      --------------
      mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)

      Siim

      Comment

      • herr_bpl
        Junior Member
        • Jan 2006
        • 15

        #4
        I understand, problem is with union clausel in query? Are version 1.1beta4 frontent graph drawing components compatible with 1.1beta5 so i could for time being replace this component with pervious version ?

        Any helpful feedback appreciated,
        Thank you,

        Siim

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          Yes, replace it with previous version. The SQL will work for MySQL v4.0.0 and higher.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          Working...