10 关于zabbix远程执行脚本运行成功后报错的问题

 68854:20240403:215744.294 [Z3005] query failed: [1366] Incorrect string value: '\xB3\xC9\xB9\xA6: ...' for column `zabbix`.`auditlog`.`details` at row 1 [insert into auditlog (auditid,userid,username,clock,action,ip,resourceid,resourcename,resourcetype,recordsetid,details) values ('clujvhmue00034mpvuk93vvnq',1,'Admin',1712152664,'7','192.168.0.88',10561,'ZCH1023',25,'clujvhmue00034mpvuk93vvnq','{"script.execute_on":["add","2"],"script.hostid":["add","10561"],"script.command":["add","/usr/bin/zabbix_get -s 192.168.0.88 -k system.run[\\"D:\\\\VNC\\\\2.bat 192.168.0.88\\"]"],"script.output":["add","成功: 尝试运行 \\"vnc\\"。\\n"]}')]

pl7bqroV660d615e09aeb.jpg

脚本是运行成功了,但是zabbix报了错误,请问各位大佬是什么原因?谢谢!!!!



请先 登录 后评论

1 个回答

小黄人

感觉像是返回数据里面有特殊字符和转义符混杂了,导致格式解析错误。可以试试精简下脚本输出内容试试

请先 登录 后评论