awslabs / collectd-cloudwatch

A collectd plugin for sending data to Amazon CloudWatch
MIT License
200 stars 132 forks source link

[error] plugin_load: Could not find plugin "python" in /usr/lib64/collectd #48

Open zzbennett opened 7 years ago

zzbennett commented 7 years ago

I booted a fresh instance in EC2 with the default Amazon Linux AMI (Amazon Linux AMI 2017.03.0 (HVM), SSD Volume Type - ami-c58c1dd3). I downloaded the setup.py script and ran it as root.

The script ran fine until it tried to restart collectd.

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
Installation cancelled due to an error.
Executed command: '/usr/sbin/collectd'.
Error output: 'Error: Reading the config file failed!
Read the syslog for details.'.

I'm seeing this in my collectd.log file:

[2017-06-13 00:40:18] plugin_load: plugin "logfile" successfully loaded.
[2017-06-13 00:40:18] [info] plugin_load: plugin "cpu" successfully loaded.
[2017-06-13 00:40:18] [info] plugin_load: plugin "df" successfully loaded.
[2017-06-13 00:40:18] [info] plugin_load: plugin "memory" successfully loaded.
[2017-06-13 00:40:18] [info] plugin_load: plugin "swap" successfully loaded.
[2017-06-13 00:40:18] [error] plugin_load: Could not find plugin "python" in /usr/lib64/collectd
[2017-06-13 00:40:18] [warning] Found a configuration for the `python' plugin, but the plugin isn't loaded or didn't register a configuration callback.
[2017-06-13 00:40:18] [warning] Found a configuration for the `python' plugin, but the plugin isn't loaded or didn't register a configuration callback.
[2017-06-13 00:40:18] [warning] Found a configuration for the `python' plugin, but the plugin isn't loaded or didn't register a configuration callback.
[2017-06-13 00:40:18] [warning] Found a configuration for the `python' plugin, but the plugin isn't loaded or didn't register a configuration callback.
ezrapagel commented 7 years ago

yum install collectd-python should do it.