wget https://s3.amazonaws.com/remote-collector/agent/v24/install_cht_perfmon.sh -O install_cht_perfmon.sh;
sh install_cht_perfmon.sh 24 $KEY aws;
I get the following error in the logs:
Thank you for installing agent!
** Setting up cht_perfmon
/opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/json-2.5.1/lib/json/common.rb:406:in `generate': "\\x8B" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/json-2.5.1/lib/json/common.rb:406:in `pretty_generate'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/facter-4.0.51/lib/facter/framework/formatters/json_fact_formatter.rb:25:in `format_for_no_query'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/facter-4.0.51/lib/facter/framework/formatters/json_fact_formatter.rb:13:in `format'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/facter-4.0.51/lib/facter.rb:439:in `to_user_output'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/facter-4.0.51/lib/facter/framework/cli/cli.rb:114:in `query'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/facter-4.0.51/lib/facter/framework/cli/cli_launcher.rb:23:in `start'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/facter-4.0.51/bin/facter:10:in `<top (required)>'
from /opt/cht_perfmon/embedded/bin/facter:23:in `load'
from /opt/cht_perfmon/embedded/bin/facter:23:in `<main>'
/opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/json-2.5.1/lib/json/common.rb:216:in `parse': 809: unexpected token at '' (JSON::ParserError)
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/json-2.5.1/lib/json/common.rb:216:in `parse'
from /opt/cht_perfmon/embedded/lib/ruby/gems/2.7.0/gems/cht_perfmon-0.0.72/bin/cht_perfmon_installer.rb:40:in `<top (required)>'
from /opt/cht_perfmon/embedded/bin/cht_perfmon_installer.rb:23:in `load'
from /opt/cht_perfmon/embedded/bin/cht_perfmon_installer.rb:23:in `<main>'
** Restarting cht_perfmon
cht_perfmon_collector: warning: no instances running. Starting...
** Restarting collectd with cht_perfmon configs
Could not verify cht_perfmon was running, stopping collectd
Installing via user-data on ami: amazon-eks-node.
I am installing the helper like this:
I get the following error in the logs: