ERROR: cannot add user parameter 解决

来源:本站原创 Linux 超过2,059 views围观 0条评论

ERROR: cannot add user parameter  一般只有种可能 就是参数重复了

 

[root@ zabbix_agentd.d]# !g
grep -r mysql *
m_mysql.conf:UserParameter=mmysql_discovery[*],/opt/zabbixscript/mysqlzabbix/discovery_mysql.sh
m_mysql.conf:UserParameter=mmysql.status[*],/opt/zabbixscript/mysqlzabbix/check_Mmysql.sh $1 $2
m_mysql.conf:UserParameter=mmysql.status[*],/opt/zabbixscript/mysqlzabbix/check_Mmysql.sh ping $1 —重复了。所以无法启动

 

[root@  zabbix_agentd.d]# journalctl -xel
Dec 20 19:33:06   systemd[1]: zabbix-agent.service: control process exited, code=exited status=1
Dec 20 19:33:06   systemd[1]: Failed to start Zabbix Agent.
— Subject: Unit zabbix-agent.service has failed
— Defined-By: systemd
— Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

— Unit zabbix-agent.service has failed.

— The result is failed.
Dec 20 19:33:06   systemd[1]: Unit zabbix-agent.service entered failed state.
Dec 20 19:33:06   systemd[1]: zabbix-agent.service failed.
Dec 20 19:33:16   systemd[1]: zabbix-agent.service holdoff time over, scheduling restart.
Dec 20 19:33:16   systemd[1]: Starting Zabbix Agent…
— Subject: Unit zabbix-agent.service has begun start-up
— Defined-By: systemd
— Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

— Unit zabbix-agent.service has begun starting up.
Dec 20 19:33:16   zabbix_agentd[27552]: zabbix_agentd [27552]: ERROR: cannot add user parameter "mmysql.status[*],/opt/zabbixscript/mysqlzabbix/check_Mmysql.
Dec 20 19:33:16   systemd[1]: zabbix-agent.service: control process exited, code=exited status=1
Dec 20 19:33:16   systemd[1]: Failed to start Zabbix Agent.
— Subject: Unit zabbix-agent.service has failed

 

 

配置完重启报错
ERROR: cannot add user parameter  一般只有种可能 就是参数重复
[root@zabbix01 mysqlcheck]# systemctl restart zabbix-agent
Job for zabbix-agent.service failed because the control process exited with error code. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.
[root@zabbix01 mysqlcheck]#

解决方案 一样是参数重复
[root@zabbix01 ~]# cd /etc/zabbix/zabbix_agentd.d/
[root@zabbix01 zabbix_agentd.d]# ll
-rw-r–r–. 1 root root 1531 Mar  2 09:55 userparameter_mysql.conf
[root@zabbix01 zabbix_agentd.d]# mv userparameter_mysql.conf userparameter_mysql.conf.bak
重启agent后解决

文章出自:CCIE那点事 http://www.jdccie.com/ 版权所有。本站文章除注明出处外,皆为作者原创文章,可自由引用,但请注明来源。 禁止全文转载。
本文链接:http://www.jdccie.com/?p=3642转载请注明转自CCIE那点事
如果喜欢:点此订阅本站