I have recently setup Zabbix (1.4.1) and so far things are going quite well. I tried however to add a custom event to monitor one of our programs but encounter permission issues.
In /etc/zabbix/zabbix_agentd.conf I added:
UserParameter=mysoftware.status,/home/me/mysoftware.py
mysoftware.py calls an external program "test". I have added the user "zabbix" to the group allowed to run "test".
I changed to the user zabbix (su -s /bin/bash zabbix), and ran "zabbix_agent -t mysoftware.status -c /etc/zabbix/zabbix_agentd.conf". This works fine, no error message.
However when restarting the zabbix-agentd service (/etc/init.d/zabbix-agent restart) I get in in /var/log/zabbix-agent/zabbix_agentd.log:
/var/run/test/test-socket: Permission denied
Any clues on how to fix this? What am I doing wrong? I encounter the same issue with another program (similar setup however).
Why does the test from the command line work but not from the agent?
In /etc/zabbix/zabbix_agentd.conf I added:
UserParameter=mysoftware.status,/home/me/mysoftware.py
mysoftware.py calls an external program "test". I have added the user "zabbix" to the group allowed to run "test".
I changed to the user zabbix (su -s /bin/bash zabbix), and ran "zabbix_agent -t mysoftware.status -c /etc/zabbix/zabbix_agentd.conf". This works fine, no error message.
However when restarting the zabbix-agentd service (/etc/init.d/zabbix-agent restart) I get in in /var/log/zabbix-agent/zabbix_agentd.log:
/var/run/test/test-socket: Permission denied
Any clues on how to fix this? What am I doing wrong? I encounter the same issue with another program (similar setup however).
Why does the test from the command line work but not from the agent?
Comment