Hi,
on CentOS 7 files created in /tmp are 755 by default, so the php script can't write the files it has just created.
I modified the path in
/var/tmp/zabbix_rabbitmq_plugin.data
and
/var/tmp/zabbix_rabbitmq_plugin.log
in order to have it work flawlessly.