I have a remote command that executes a query on zabbix server host:
But it doesn't work, and I can see in zabbix agent log:
But, this remote command works:
The differences are the {ITEM.LASTVALUE}, the first case is:
and the second case:
I think the string in the first case is too long, but if I execute the command locally, it works fine.
I need confirmation. Has anybody had this same problem?.
Code:
{HOSTNAME}: mysql -uzabbix --password="password" --execute 'use zabbix;update hosts_profiles,hosts set hosts_profiles.hardware="{ITEM.LASTVALUE}" where (select hosts_profiles.hostid from hosts where hosts.ip="{IPADDRESS}" and hosts.hostid=hosts_profiles.hostid)'
Code:
sh: Syntax error: Unterminated quoted string
Code:
{HOSTNAME}: mysql -uzabbix --password="password" --execute 'use zabbix;update hosts_profiles,hosts set hosts_profiles.os="{ITEM.LASTVALUE}" where (select hosts_profiles.hostid from hosts where hosts.ip="{IPADDRESS}" and hosts.hostid=hosts_profiles.hostid)'
Code:
NÂș process: 1 Model process: Mem: 885 MB HDD(/dev/sda:): 500.1 GB HDD(/dev/sdb:): 500.1 GB ISDN: 00:08.0 Network controller: Cologne Chip Designs GmbH ISDN network controller [HFC-PCI] (rev 02)
Code:
Linux Debian 5.0.3 ( i686)
I need confirmation. Has anybody had this same problem?.
Comment