What does it mean and how can it be fixed?
Apr 4 14:14:36 kuchumovn collectdmon[30705]: Error: execvp(collectd) failed: No such file or directory
Apr 4 14:14:36 kuchumovn collectdmon[30703]: Warning: collectd terminated with exit status 255
...
Apr 4 14:14:36 kuchumovn collectdmon[30703]: Warning: collectd terminated with exit status 255
Apr 4 14:14:36 kuchumovn collectdmon[30703]: Warning: restarting collectd
Apr 4 14:14:36 kuchumovn collectdmon[30717]: Error: execvp(collectd) failed: No such file or directory
Apr 4 14:14:36 kuchumovn collectdmon[30703]: Warning: collectd terminated with exit status 255
Apr 4 14:14:36 kuchumovn collectdmon[30703]: Error: collectd is respawning too fast - disabled for 300 seconds
Managed to resolve the issue.
It happens if I edit the /etc/init.d/collectd file and correct the paths for binaries:
/usr/sbin/collectd -> /opt/collectd/sbin/collectd
/usr/sbin/collectdmon -> /opt/collectd/sbin/collectdmon
Instead of altering the paths in that file, i tried to:
sudo ln --symbolic /opt/collectd/sbin/collectd /usr/sbin/collectd
sudo ln --symbolic /opt/collectd/sbin/collectdmon /usr/sbin/collectdmon
and it worked
Excellent solution, I was having exactly the same issue.
Many thanks dude.
It's bad because -c "$DAEMON" is missing in the original /etc/init.d/collectd file.
start-stop-daemon --start --quiet --oknodo --pidfile "$_PIDFILE" \
--exec $COLLECTDMON_DAEMON -- -P "$_PIDFILE" -c "$DAEMON" -- -C "$CONFIGFILE" \
|| return 2
Most helpful comment
Managed to resolve the issue.
It happens if I edit the /etc/init.d/collectd file and correct the paths for binaries:
Instead of altering the paths in that file, i tried to:
and it worked