awslabs / collectd-cloudwatch

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

Error when running setup.py in raspberry pi #103

Open fertrevino opened 2 years ago

fertrevino commented 2 years ago

The following error appears when running setup.py in a raspberry pi. After this, collectd is unable to start as shown below. Deleting the /etc/collectd-cloudwatch.conf makes collectd usable again. The generated cloudwatch conf is shown below. What is the possible cause and solution for this?

Error:

Plugin configuration written successfully.
CloudWatch collectd plugin is already configured in the existing collectd.conf file.
Stopping collectd process ... NOT OK
Starting collectd process ... NOT OK
Installation cancelled due to an error.
Executed command: '/usr/sbin/collectd'.
Error output: '[2022-03-24 11:46:29] plugin_load: plugin "logfile" successfully loaded.
Error: Parsing the config file failed!'.

Running sudo collectd generates this:

[2022-03-24 11:51:09] plugin_load: plugin "logfile" successfully loaded.
Error: Parsing the config file failed!
cat /etc/collectd-cloudwatch.conf 
LoadPlugin python

<Plugin python>
    ModulePath "/opt/collectd-plugins/"
    LogTraces true
    Interactive false
    Import "cloudwatch_writer"
</Plugin>

collectd version:

sudo apt-cache policy collectd
collectd:
  Installed: 5.12.0-7+rpi1
  Candidate: 5.12.0-7+rpi1
  Version table:
 *** 5.12.0-7+rpi1 500
        500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
        100 /var/lib/dpkg/status