keepalived 脚本不执行 报SECURITY VIOLATION - scripts are being executed but script_security not enabled.

查看/var/log/messages keepalived相关日志,查看提示,是否没有权限,script_security not enabled

1、确认脚本可以手动执行,是否有执行权限

2、keepalived配置文件是否省略了global_defs {},本地测试省去这段脚本不会执行,

加上后虽然还提示SECURITY VIOLATION - scripts are being executed but script_security not enabled.

但是脚本执行了,查看/var/log/messages 可看到 VRRP_Script(chk_mysql) succeeded

参考:

https://github.com/acassen/keepalived/issues/901

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章