Ansible collectd configuration CentOS -


i trying configure collectd on centos using ansible:

i have task:

- name: start service new conf   systemd:     name: collectd     enabled: yes     daemon_reload: yes     state: started 

that works after run:

- name: start service new conf   systemd:     name: collectd     enabled: no     daemon_reload: no     state: stopped 

then cannot restart service anymore has happened on 4 different virtual machines. next time get:

failed! => {"changed": false, "failed": true, "msg": "unable start service collectd: job collectd.service failed because control process exited error code. see \"systemctl status collectd.service\" , \"journalctl -xe\" details.\n"} 

the systemd records say:

redirecting /bin/systemctl status  collectd.service ● collectd.service - collectd statistics daemon    loaded: loaded (/usr/lib/systemd/system/collectd.service; enabled; vendor preset: disabled)    active: failed (result: start-limit) since fri 2017-08-18 14:47:54 awst; 4min 35s ago      docs: man:collectd(1)            man:collectd.conf(5)   process: 31815 execstart=/usr/sbin/collectd (code=exited, status=1/failure)  main pid: 31815 (code=exited, status=1/failure)  aug 18 14:47:54 testserver systemd[1]: unit collectd.service entered failed state. aug 18 14:47:54 testserver systemd[1]: collectd.service failed. aug 18 14:47:54 testserver collectd[31815]: unable read config file /etc/collectd.conf. aug 18 14:47:54 testserver collectd[31815]: error: reading config file failed! aug 18 14:47:54 testserver collectd[31815]: read syslog details. aug 18 14:47:54 testserver systemd[1]: collectd.service holdoff time over, scheduling restart. aug 18 14:47:54 testserver systemd[1]: start request repeated collectd.service aug 18 14:47:54 testserver systemd[1]: failed start collectd statistics daemon. aug 18 14:47:54 testserver systemd[1]: unit collectd.service entered failed state. aug 18 14:47:54 testserver systemd[1]: collectd.service failed. 

i have checked config file , it's permissions are:

-rw-r--r--. 1 root root 36489 aug 18 14:42 collectd.conf 

any ideas on how work out happening?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -