I'm running into a mysql error when saving changes to my graphs. It appears it is trying to make a query for a graph with a null hostid. I've searched through the hosts and graphs tables and cannot find anything that would explain this. Thanks for your suggestions.
# Error in query [select new.itemid from items new, items dest where dest.itemid=17356 and new.key_=dest.key_ and new.hostid=] [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]
# mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:411]
# Error in query [select * from hosts where hostid=] [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]
# mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:411]
# No host with hostid=[]
# Missed key "system.cpu.util[,user,avg1]" for host ""
# Can not update graph "CPU Utilization" for host ""
# mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:411]
# Error in query [select * from hosts where hostid=] [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]
# mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:411]
# No host with hostid=[]
# Missed key "system.cpu.util[,user,avg1]" for host ""
# Can not update graph "CPU Utilization" for host ""
Comment