PDA

View Full Version : Permission denied error when trying to start agent


disparo
04-10-2005, 16:09
Hello! I has installed zabbix1.1alpha12 agent on 5 machines, then, i upgraded it to beta1. Upgrade was successfull! Now, i tried to perform clean installation of beta1 agent on new server. After installing i executed

chown -R zabbix:zabbix /var/log/zabbix
chown -R zabbix:zabbix /var/run/zabbix

But every time i trying to start agent, i'm getting "Unable to open debug file... Cannot to create PID file - Permission denied!"

/var/log is 777
/var/run is 777
/var is 777

But permission denied...

WHAT'S THE PROBLEM?! :confused: I BROKE MY BRAIN ALREADY... :eek:

James Wells
04-10-2005, 16:19
Greetings,

Right off the bat, it looks like you might have an error in your zabbix_agend.conf file. Another possibility is that you manually altered some of the path's in your zabbix_agent source code, and need to re-apply them.

I had this same issue happen. I altered the zabbix_agent code to use /opt/zabbix/tmp as it's temporary directory instead of /tmp, I changed a couple other paths as well. Later when I did a fresh install of 1.1Beta1, I forgot to reapply the path changes and got the same error.

disparo
04-10-2005, 16:43
Greetings,

Right off the bat, it looks like you might have an error in your zabbix_agend.conf file. Another possibility is that you manually altered some of the path's in your zabbix_agent source code, and need to re-apply them.

I had this same issue happen. I altered the zabbix_agent code to use /opt/zabbix/tmp as it's temporary directory instead of /tmp, I changed a couple other paths as well. Later when I did a fresh install of 1.1Beta1, I forgot to reapply the path changes and got the same error.

Not in my case! You got an errors because you forgot to make "chown ...", i guess.