{"action":"created","issue":{"url":"https://api.github.com/repos/voxpupuli/puppet-zabbix/issues/264","repository_url":"https://api.github.com/repos/voxpupuli/puppet-zabbix","labels_url":"https://api.github.com/repos/voxpupuli/puppet-zabbix/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/voxpupuli/puppet-zabbix/issues/264/comments","events_url":"https://api.github.com/repos/voxpupuli/puppet-zabbix/issues/264/events","html_url":"https://github.com/voxpupuli/puppet-zabbix/issues/264","id":172000870,"number":264,"title":"zabbix-agentd can't start on CentOS 6.x","user":{"login":"xdexter","id":10849509,"avatar_url":"https://avatars.githubusercontent.com/u/10849509?v=3","gravatar_id":"","url":"https://api.github.com/users/xdexter","html_url":"https://github.com/xdexter","followers_url":"https://api.github.com/users/xdexter/followers","following_url":"https://api.github.com/users/xdexter/following{/other_user}","gists_url":"https://api.github.com/users/xdexter/gists{/gist_id}","starred_url":"https://api.github.com/users/xdexter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xdexter/subscriptions","organizations_url":"https://api.github.com/users/xdexter/orgs","repos_url":"https://api.github.com/users/xdexter/repos","events_url":"https://api.github.com/users/xdexter/events{/privacy}","received_events_url":"https://api.github.com/users/xdexter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-18T21:05:50Z","updated_at":"2016-10-10T12:29:07Z","closed_at":null,"body":"### Affected Puppet, Ruby, OS and module versions/distributions\r\n\r\n- Puppet: 3.8.7\r\n- Ruby: 1.8.7\r\n- Distribution: CentOS release 6.8 (Final)\r\n- Module version: v2.4.0\r\n\r\n### How to reproduce (e.g Puppet code you use)\r\ninclude zabbix::agent\r\n\r\n### What are you seeing\r\nProblem 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\". \r\n\r\nProblem 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\").\r\n\r\n### What behaviour did you expect instead\r\nservice start works\r\n\r\n### Output log\r\nProblem 1:\r\nError: Could not start Service[zabbix-agent]: Execution of '/sbin/service zabbix-agent start' returned 5: /usr/local/sbin/zabbix_agentd not installed!\r\nError: /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!\r\n\r\nProblem 2:\r\nIniciando o Zabbix Agent: zabbix_agentd [32380]: cannot open config file [-c]: [2] No such file or directory\r\n\r\n### Any additional information you'd like to impart\r\nAfter correct both problems de service works."},"comment":{"url":"https://api.github.com/repos/voxpupuli/puppet-zabbix/issues/comments/252604557","html_url":"https://github.com/voxpupuli/puppet-zabbix/issues/264#issuecomment-252604557","issue_url":"https://api.github.com/repos/voxpupuli/puppet-zabbix/issues/264","id":252604557,"user":{"login":"shaunrampersad","id":4571327,"avatar_url":"https://avatars.githubusercontent.com/u/4571327?v=3","gravatar_id":"","url":"https://api.github.com/users/shaunrampersad","html_url":"https://github.com/shaunrampersad","followers_url":"https://api.github.com/users/shaunrampersad/followers","following_url":"https://api.github.com/users/shaunrampersad/following{/other_user}","gists_url":"https://api.github.com/users/shaunrampersad/gists{/gist_id}","starred_url":"https://api.github.com/users/shaunrampersad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaunrampersad/subscriptions","organizations_url":"https://api.github.com/users/shaunrampersad/orgs","repos_url":"https://api.github.com/users/shaunrampersad/repos","events_url":"https://api.github.com/users/shaunrampersad/events{/privacy}","received_events_url":"https://api.github.com/users/shaunrampersad/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T12:29:07Z","updated_at":"2016-10-10T12:29:07Z","body":"@bastelfreak , happy to do the PR to Vox Pupuli. \r\nI did it on mine to test before I submitted to Vox. \r\n\r\n@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 ?\r\n"}}
{"actor":{"display_login":"shaunrampersad"}}