ERROR: cannot add user parameter 解決

來源:本站原創 Linux 超過3,719 views圍觀 0條評論

ERROR: cannot add user parameter  一般只有種可能 就是參數重復了

 

[[email protected] 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 —重復了。所以無法啟動

 

[[email protected]  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  一般只有種可能 就是參數重復
[[email protected] 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.
[[email protected] mysqlcheck]#

解決方案 一樣是參數重復
[[email protected] ~]# cd /etc/zabbix/zabbix_agentd.d/
[[email protected] zabbix_agentd.d]# ll
-rw-r–r–. 1 root root 1531 Mar  2 09:55 userparameter_mysql.conf
[[email protected] zabbix_agentd.d]# mv userparameter_mysql.conf userparameter_mysql.conf.bak
重啟agent后解決

文章出自:CCIE那點事 http://www.qdxgqk.live/ 版權所有。本站文章除注明出處外,皆為作者原創文章,可自由引用,但請注明來源。 禁止全文轉載。
本文鏈接:http://www.qdxgqk.live/?p=3642轉載請注明轉自CCIE那點事
如果喜歡:點此訂閱本站
?
?
萌宠夺宝游戏