Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

collect config is broken #8

Open
root360-StefanHeitmueller opened this issue Nov 27, 2020 · 0 comments
Open

collect config is broken #8

root360-StefanHeitmueller opened this issue Nov 27, 2020 · 0 comments

Comments

@root360-StefanHeitmueller

Operating System

Ubuntu Bionic Beaver 18.04

Installation

sh install_cht_perfmon.sh 20 <key> aws disable-update

Result

/etc/chtcollectd/collectd.conf

Collectd config file looks bogus, some placeholders are not being replaced correctly

Hostname "i-xxx"
FQDNLookup false
Interval 10
BaseDir "/var/lib/chtcollectd"
PIDFile "/var/run/chtcollectd.pid"<LoadPlugin cpu>
  Interval 10
</LoadPlugin>
<LoadPlugin df>
  Interval 10
</LoadPlugin>
<LoadPlugin memory>
  Interval 10
</LoadPlugin>
<LoadPlugin CHT_PERFMON_INTERFACE_ENABLED>
  Interval CHT_PERFMON_INTERFACE_SAMPLE_INTERVAL
</LoadPlugin>
<LoadPlugin CHT_PERFMON_DISK_ENABLED>
  Interval CHT_PERFMON_DISK_SAMPLE_INTERVAL
</LoadPlugin>
LoadPlugin csv
<LoadPlugin aggregation>
  Interval 10
</LoadPlugin><Plugin aggregation>
  <Aggregation>
    Plugin            "cpu"
    Type              "cpu"
    GroupBy           "Host"
    GroupBy           "TypeInstance"
    CalculateAverage  true
    SetPlugin         "cpu"
    SetPluginInstance "%{aggregation}"
  </Aggregation>
</Plugin><Plugin df>
  ReportByDevice false
  ValuesAbsolute true
  ValuesPercentage false
</Plugin><Plugin csv>
  StoreRates true
</Plugin>LoadPlugin "match_regex"
<Chain "PostCache">
  <Rule>
    <Match regex>
      Plugin "^cpu$"
      PluginInstance "^[0-9]+$"
    </Match>
    <Target write>
      Plugin "aggregation"
    </Target>
    Target stop
  </Rule>
  <Target write>
    Plugin "csv"
  </Target>
</Chain>

Replacing

<LoadPlugin CHT_PERFMON_INTERFACE_ENABLED>
  Interval CHT_PERFMON_INTERFACE_SAMPLE_INTERVAL
</LoadPlugin>
<LoadPlugin CHT_PERFMON_DISK_ENABLED>
  Interval CHT_PERFMON_DISK_SAMPLE_INTERVAL
</LoadPlugin>

with

<LoadPlugin interface>
  Interval 10
</LoadPlugin>
<LoadPlugin disk>
  Interval 10
</LoadPlugin>

works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant