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

Installer hangs forever #5

Open
jniedrauer opened this issue Jan 22, 2018 · 2 comments
Open

Installer hangs forever #5

jniedrauer opened this issue Jan 22, 2018 · 2 comments

Comments

@jniedrauer
Copy link

install_cht_perfmon.sh hangs forever in an unbounded while loop.

The failure is at line of 240 of install_cht_perfmon.sh:

if [ $counter -gt $user_defined_frequency ]; then

$user_defined_frequency is null here. Since this occurs in an unbounded while loop, the script never completes.

$user_defined_frequency is defined with the line:

user_defined_frequency=$(grep -A 1 "LoadPlugin cpu" /etc/chtcollectd/collectd.conf | grep Int | awk '{print $2}')

Which does not return anything. This is due to the fact that collectd uses the default interval instead of defining it explicitly.

collectd is installed in this script with a custom RPM that does not respect the preexistence of the configuration file.

/etc/chtcollectd/collectd.conf:

<LoadPlugin cpu>
  Interval

What this means is that I can't even put the file in place with an interval defined before running the script. The installer is unusable in its current form due to collectd.conf not defining an interval for the cpu plugin.

@vpillai
Copy link

vpillai commented Jan 27, 2018

Jason, Thanks for your diagnosis.
Let us take a look at this and we can update this thread.

/v

@jniedrauer
Copy link
Author

I am no longer able to reproduce this issue. Was this fixed in the collectd RPM?

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

2 participants