Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netdatacli and netdata-claim.sh not installed #12

Open
theblockstalk opened this issue Oct 3, 2023 · 1 comment · May be fixed by #16
Open

netdatacli and netdata-claim.sh not installed #12

theblockstalk opened this issue Oct 3, 2023 · 1 comment · May be fixed by #16

Comments

@theblockstalk
Copy link

theblockstalk commented Oct 3, 2023

I have successfully run the netdata-agent.yml on my machine (no errors reported). After this I run the claim.yml script and get the following output:

PLAY [Claim netdata node] ******************************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************************************
ok: [testing.local.primary]

TASK [claim : Get information about running agent] *****************************************************************************************************************************************
fatal: [testing.local.primary]: FAILED! => {"changed": false, "cmd": "netdatacli aclk-state json", "msg": "[Errno 2] No such file or directory: b'netdatacli': b'netdatacli'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

PLAY RECAP *********************************************************************************************************************************************************************************
testing.local.primary      : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

If I connect to the machine I can see that the netedata program and service is installed but netdatacli and netdata-claim.sh (also used in claim.yml) programs are not installed.

root@f1d7424c1e81:/# systemctl status netdata
● netdata.service - netdata - Real-time performance monitoring
   Loaded: loaded (/lib/systemd/system/netdata.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2023-10-03 09:24:07 UTC; 27min ago
     Docs: man:netdata
           file:///usr/share/doc/netdata/html/index.html
           https://github.com/firehol/netdata
 Main PID: 13613 (netdata)
    Tasks: 14 (limit: 9200)
   CGroup: /docker/f1d7424c1e813b4baa85bed2d057ed1791bd5b519933786b9cfb27ee904dbb95/system.slice/netdata.service
           ├─13613 /usr/sbin/netdata -D
           ├─13620 bash /usr/lib/x86_64-linux-gnu/netdata/plugins.d/tc-qos-helper.sh 1
           └─13655 /usr/lib/x86_64-linux-gnu/netdata/plugins.d/apps.plugin 1

Oct 03 09:24:07 f1d7424c1e81 systemd[1]: Started netdata - Real-time performance monitoring.
root@f1d7424c1e81:/# netdata -v
netdata 1.9.0
root@f1d7424c1e81:/# netdatacli
bash: netdatacli: command not found
root@f1d7424c1e81:/# netdata-claim.sh
bash: netdata-claim.sh: command not found

This was tested on a Docker image running Ubuntu 18.04

@tkatsoulas
Copy link
Contributor

You ended up with a version soooo Ancient, I am really sorry for that (and for not replying sooner, feel free to direct ping me next time) let me try to fix that but, to be honest on ubuntu 18.04 you need static installations. so this is not trivial.

@pid1 pid1 linked a pull request Jan 15, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants