awslabs / collectd-cloudwatch

A collectd plugin for sending data to Amazon CloudWatch
MIT License
199 stars 131 forks source link

setup fails on collectd 5.8.0 version #74

Open gutudumitru opened 6 years ago

gutudumitru commented 6 years ago

Hello there. I was not able to setup the plugin on later Amazon2018-03 with latest collectd-5.8.0. I've always went into the process of not being able to stop and start the collected daemon.

Choose how to install CloudWatch plugin in collectd:
  1. Do not modify existing collectd configuration
  2. Add plugin to the existing configuration
  3. Use CloudWatch recommended configuration (4 metrics)
Enter choice [3]:
Plugin configuration written successfully.
Creating backup of the original configuration ... OK
Replacing collectd configuration ... OK
Replacing whitelist configuration ... OK
Stopping collectd process ... NOT OK
Starting collectd process ... NOT OK

The laziest fix was to change stop and start commands to STOP_COLLECTD_CMD = CMD("/etc/init.d/collectd stop", "Stopping collectd process") START_COLLECTD_CMD = CMD("/etc/init.d/collectd start", "Starting collectd process")

Script finished with status - OK