Update media functionality has syntax error in SQL (looks like a missing space and backquotes instead of single pops).
version still reads 1.1alpha11.
version still reads 1.1alpha11.
[ERROR:Cannot update media] [COLOR=Blue]SQL error: Unknown column '1-7,00:00-23:59' in 'field list' Query: update media set userid=6, mediatypeid=1, sendto='[email protected]', active=0,severity=62,period=`1-7,00:00-23:59` where mediaid=7[/COLOR]
Error in query [select triggerid,expression,description,status,priority,lastchange,dep_level,comments,url,value from triggers where triggerid=] [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]Error in query [select distinct h.hostid from hosts h,functions f, items i where i.itemid=f.itemid and h.hostid=i.hostid and f.triggerid=] [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] [Action added] [COLOR=Blue]No action with actionid=[1] No trigger with triggerid=[][/COLOR]
[ERROR:Cannot update media] [COLOR=Blue]SQL error: Unknown column '1-7,00:00-23:59' in 'field list' Query: update media set userid=6, mediatypeid=1, sendto='[email protected]', active=0,severity=62,period=`1-7,00:00-23:59` where mediaid=7[/COLOR]
Index: config.inc.php =================================================================== RCS file: /cvsroot/zabbix/zabbix/frontends/php/include/config.inc.php,v retrieving revision 1.261 diff -r1.261 config.inc.php 2010c2010 < $sql="update media set userid=$userid, mediatypeid=$mediatypeid, sendto='$sendto', active=$active,severity=$s,period=`$period` where mediaid=$mediaid"; --- > $sql="update media set userid=$userid, mediatypeid=$mediatypeid, sendto='$sendto', active=$active,severity=$s,period='$period' where mediaid=$mediaid";
[ERROR:Cannot update trigger]
SQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's volume /prn',priority=4,status=0,comments='',url='',value=2 where triggerid=12' at line 1
Query: update triggers set expression='{11670}<10000',description='Low free disk space on {HOSTNAME}'s volume /prn',priority=4,status=0,comments='',url='',value=2 where triggerid=12543
). At the very least a mention in the manual (which may be there, I haven't checked. But based on the last time I flipped through it I doubt it is.)
Comment