Import crashes on importing GRAPHS info (hosts without graphs are being importred successfully)
Error is:
* Added new host [Template_AP_Canopy]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Added new item Template_AP_Canopy:ifInOctets1
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Added new item Template_AP_Canopy:ifInUcastPkts.1
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Added new item Template_AP_Canopy:ifOutOctets1
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Added new item Template_AP_Canopy:ifOutUcastPkts.1
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Undefined index: hostid[/var/www/new/api/classes/class.citem.php:549]
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: ошибка синтаксиса в конце ввода LINE 1: ...temid FROM items i WHERE i.key_='ifOutOctets1' AND i.hostid= ^[/var/www/new/include/db.inc.php:406]
* Error in query [SELECT DISTINCT i.itemid FROM items i WHERE i.key_='ifOutOctets1' AND i.hostid=] [ERROR: ошибка синтаксиса в конце ввода LINE 1: ...temid FROM items i WHERE i.key_='ifOutOctets1' AND i.hostid= ^]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/new/include/export.inc.php:847]
* Undefined index: hostid[/var/www/new/api/classes/class.citem.php:549]
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: ошибка синтаксиса в конце ввода LINE 1: ...itemid FROM items i WHERE i.key_='ifInOctets1' AND i.hostid= ^[/var/www/new/include/db.inc.php:406]
* Error in query [SELECT DISTINCT i.itemid FROM items i WHERE i.key_='ifInOctets1' AND i.hostid=] [ERROR: ошибка синтаксиса в конце ввода LINE 1: ...itemid FROM items i WHERE i.key_='ifInOctets1' AND i.hostid= ^]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/new/include/export.inc.php:847]
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block[/var/www/new/include/db.inc.php:406]
* Error in query [SELECT g.graphid FROM graphs g, graphs_items gi, items i WHERE g.graphid=gi.graphid AND gi.itemid=i.itemid AND g.name='Ethernet Traffic' AND i.hostid=10049] [ERROR: current transaction is aborted, commands ignored until end of transaction block]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Undefined index: hostid[/var/www/new/api/classes/class.citem.php:549]
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: ошибка синтаксиса в конце ввода LINE 1: ...d FROM items i WHERE i.key_='ifOutUcastPkts.1' AND i.hostid= ^[/var/www/new/include/db.inc.php:406]
* Error in query [SELECT DISTINCT i.itemid FROM items i WHERE i.key_='ifOutUcastPkts.1' AND i.hostid=] [ERROR: ошибка синтаксиса в конце ввода LINE 1: ...d FROM items i WHERE i.key_='ifOutUcastPkts.1' AND i.hostid= ^]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/new/include/export.inc.php:847]
* Undefined index: hostid[/var/www/new/api/classes/class.citem.php:549]
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: ошибка синтаксиса в конце ввода LINE 1: ...id FROM items i WHERE i.key_='ifInUcastPkts.1' AND i.hostid= ^[/var/www/new/include/db.inc.php:406]
* Error in query [SELECT DISTINCT i.itemid FROM items i WHERE i.key_='ifInUcastPkts.1' AND i.hostid=] [ERROR: ошибка синтаксиса в конце ввода LINE 1: ...id FROM items i WHERE i.key_='ifInUcastPkts.1' AND i.hostid= ^]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/new/include/export.inc.php:847]
* Undefined index: gitems[/var/www/new/api/classes/class.cgraph.php:447]
* Missing items for graph "IP Traffic"
XML attached
Error is:
* Added new host [Template_AP_Canopy]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Added new item Template_AP_Canopy:ifInOctets1
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Added new item Template_AP_Canopy:ifInUcastPkts.1
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Added new item Template_AP_Canopy:ifOutOctets1
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Added new item Template_AP_Canopy:ifOutUcastPkts.1
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Undefined index: hostid[/var/www/new/api/classes/class.citem.php:549]
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: ошибка синтаксиса в конце ввода LINE 1: ...temid FROM items i WHERE i.key_='ifOutOctets1' AND i.hostid= ^[/var/www/new/include/db.inc.php:406]
* Error in query [SELECT DISTINCT i.itemid FROM items i WHERE i.key_='ifOutOctets1' AND i.hostid=] [ERROR: ошибка синтаксиса в конце ввода LINE 1: ...temid FROM items i WHERE i.key_='ifOutOctets1' AND i.hostid= ^]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/new/include/export.inc.php:847]
* Undefined index: hostid[/var/www/new/api/classes/class.citem.php:549]
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: ошибка синтаксиса в конце ввода LINE 1: ...itemid FROM items i WHERE i.key_='ifInOctets1' AND i.hostid= ^[/var/www/new/include/db.inc.php:406]
* Error in query [SELECT DISTINCT i.itemid FROM items i WHERE i.key_='ifInOctets1' AND i.hostid=] [ERROR: ошибка синтаксиса в конце ввода LINE 1: ...itemid FROM items i WHERE i.key_='ifInOctets1' AND i.hostid= ^]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/new/include/export.inc.php:847]
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block[/var/www/new/include/db.inc.php:406]
* Error in query [SELECT g.graphid FROM graphs g, graphs_items gi, items i WHERE g.graphid=gi.graphid AND gi.itemid=i.itemid AND g.name='Ethernet Traffic' AND i.hostid=10049] [ERROR: current transaction is aborted, commands ignored until end of transaction block]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* Undefined index: hostid[/var/www/new/api/classes/class.citem.php:549]
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: ошибка синтаксиса в конце ввода LINE 1: ...d FROM items i WHERE i.key_='ifOutUcastPkts.1' AND i.hostid= ^[/var/www/new/include/db.inc.php:406]
* Error in query [SELECT DISTINCT i.itemid FROM items i WHERE i.key_='ifOutUcastPkts.1' AND i.hostid=] [ERROR: ошибка синтаксиса в конце ввода LINE 1: ...d FROM items i WHERE i.key_='ifOutUcastPkts.1' AND i.hostid= ^]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/new/include/export.inc.php:847]
* Undefined index: hostid[/var/www/new/api/classes/class.citem.php:549]
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: ошибка синтаксиса в конце ввода LINE 1: ...id FROM items i WHERE i.key_='ifInUcastPkts.1' AND i.hostid= ^[/var/www/new/include/db.inc.php:406]
* Error in query [SELECT DISTINCT i.itemid FROM items i WHERE i.key_='ifInUcastPkts.1' AND i.hostid=] [ERROR: ошибка синтаксиса в конце ввода LINE 1: ...id FROM items i WHERE i.key_='ifInUcastPkts.1' AND i.hostid= ^]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/var/www/new/include/db.inc.php:547]
* reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/new/include/export.inc.php:847]
* Undefined index: gitems[/var/www/new/api/classes/class.cgraph.php:447]
* Missing items for graph "IP Traffic"
XML attached
) patches :
Comment