Skip to content

Cannot import the template into Zabbix_server #1

@BediarSofiane

Description

@BediarSofiane

Hello,
I am trying to use your solution for monitoring Docker containers using Zabbix.
The problem is when I try to import the template that you provide via the Zabbix GUI, I have the following error message:
mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:831]
Array to string conversion [include/classes/db/DB.php:408]
Error in query [INSERT INTO items (name,type,snmp_community,snmp_oid,delay,status,snmpv3_securityname,snmpv3_securitylevel,snmpv3_authpassphrase,snmpv3_privpassphrase,delay_flex,params,ipmi_sensor,authtype,username,password,publickey,privatekey,port,filter,lifetime,description,key_,trapper_hosts,hostid,flags,value_type,data_type,interfaceid,itemid) VALUES ('Discover docker coontainers','0','','','60','0','','0','','','','','','0','','','','','',Array,'30','','system.run[/usr/bin/sudo /etc/zabbix/list_containers_docker_lld.py]','','10086','1','4','0',NULL,'23338')] [Unknown column 'Array' in 'field list']
SQL statement execution has failed "INSERT INTO items (name,type,snmp_community,snmp_oid,delay,status,snmpv3_securityname,snmpv3_securitylevel,snmpv3_authpassphrase,snmpv3_privpassphrase,delay_flex,params,ipmi_sensor,authtype,username,password,publickey,privatekey,port,filter,lifetime,description,key_,trapper_hosts,hostid,flags,value_type,data_type,interfaceid,itemid) VALUES ('Discover docker coontainers','0','','','60','0','','0','','','','','','0','','','','','',Array,'30','','system.run[/usr/bin/sudo /etc/zabbix/list_containers_docker_lld.py]','','10086','1','4','0',NULL,'23338')".

Any ideas?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions