-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zabbix-agentd can't start on CentOS 6.x #264
Comments
ugh :( Thanks for reporting this. Do you think you're able to provide a patch for this? |
Hello @bastelfreak, I think that best solution are use script default from package zabbix-agentd from CentOS, see please: #265. I already tested and working. |
Ah, or remove the code in startup.pp: elsif $::osfamily in ['Debian', 'RedHat'] { Do you decide, :) |
HI Guys I'm experiencing the same issues on RHEL6. Possible solution for problem1:
to
|
Fix issues in voxpupuli#264
Hi, |
@shaunrampersad you opened the PR against your fork, not sure if this was intended. Could you open it against the Vox Pupuli repo as well? |
IMHO it should be |
@bastelfreak , happy to do the PR to Vox Pupuli. @killermoehre , havent used type -P. I'm no expert on this, but looks like it works as well. Happy to change to this and submit PR if everyone is happy ? |
@bastelfreak , submitted a PR anyways. |
I've also fixed the zabbix-server-redhat.init.erb.
|
Yes, it works now. Thank you! |
okay perfect. travis is currently busy, not sure if we can kick out a release today, I will add it to the queue. |
Perfect, thank you all. |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
include zabbix::agent
What are you seeing
Problem 1: The service zabbix-agent on Centos 6.x have the binary in "/usr/sbin/zabbix_agentd", but template the module (https://github.com/voxpupuli/puppet-zabbix/blob/master/templates/zabbix-agent-redhat.init.erb) use the path "/usr/local/sbin/zabbix_agentd".
Problem 2: In template init.d (https://github.com/voxpupuli/puppet-zabbix/blob/master/templates/zabbix-agent-redhat.init.erb) have syntax error on "OPTS" variable, the caracter "-c" are in variable (OPTS="-c <%= @agent_configfile_path %>") and daemon (daemon "$ZABBIX_BIN -c $OPTS").
What behaviour did you expect instead
service start works
Output log
Problem 1:
Error: Could not start Service[zabbix-agent]: Execution of '/sbin/service zabbix-agent start' returned 5: /usr/local/sbin/zabbix_agentd not installed!
Error: /Stage[main]/Zabbix::Agent/Service[zabbix-agent]/ensure: change from stopped to running failed: Could not start Service[zabbix-agent]: Execution of '/sbin/service zabbix-agent start' returned 5: /usr/local/sbin/zabbix_agentd not installed!
Problem 2:
Iniciando o Zabbix Agent: zabbix_agentd [32380]: cannot open config file [-c]: [2] No such file or directory
Any additional information you'd like to impart
After correct both problems de service works.
The text was updated successfully, but these errors were encountered: