pavlovdo / pystormon

Zabbix storage monitoring via CIM/WBEM
15 stars 8 forks source link

Cron commands not executed in docker container #8

Closed ciesla05 closed 3 years ago

ciesla05 commented 3 years ago

I used today this project and its working well but I have problem with docker. In running container cron commands are not not executed, but when I go to container and manualy execute scripts then its working. So I think its something with cron.

pavlovdo commented 3 years ago

Hi! I removed absolute path to crond from CMD in container. Try build container now.

ciesla05 commented 3 years ago

Not helped but when in container I add execution rights then its start working. example: chmod +x /etc/zabbix/externalscripts/pystormon/storage_perfomance.py

pavlovdo commented 3 years ago

Hi! Your issue is probably due to umask other than 0002. As result, after clone from github, your python scripts haven't permissions to execute for user root. You can check it via command umask. For fix this issue, add permission to execute for python scripts in project directory, remove container and rebuild it.

pavlovdo commented 3 years ago

The cause of the issue was umask probably.