I was trying to reconfigure an agent to disable the web UI and couldn’t get the config changes to apply. I looked for the logs and they turned out to have moved to under:
When I run the netdata command I get:
luis@pinode4:/opt/netdata/etc/netdata$ netdata Command 'netdata' not found, but can be installed with: sudo apt install netdata-core
but…the service is running (and web UI reachable):
luis@pinode4:/opt/netdata/etc/netdata$ sudo systemctl status netdata ● netdata.service - Real time performance monitoring Loaded: loaded (/lib/systemd/system/netdata.service; enabled; preset: enabled) Active: active (running) since Sun 2023-04-30 22:27:15 BST; 2min 29s ago Process: 18166 ExecStartPre=/bin/mkdir -p /opt/netdata/var/cache/netdata (code=exited, status=0/SUCCESS) Process: 18167 ExecStartPre=/bin/chown -R netdata /opt/netdata/var/cache/netdata (code=exited, status=0/SUCCESS) Process: 18168 ExecStartPre=/bin/mkdir -p /run/netdata (code=exited, status=0/SUCCESS) Process: 18169 ExecStartPre=/bin/chown -R netdata /run/netdata (code=exited, status=0/SUCCESS) Main PID: 18170 (netdata) Tasks: 86 (limit: 4368) Memory: 109.9M CPU: 41.733s CGroup: /system.slice/netdata.service
Once I modified the config at: /opt/netdata/etc/netdata/netdata.conf
then the changes took effect.
So what’s happened here?
The node is part of a k8s cluster which I’ve been testing netdata helm deployments to.
I’ve noticed that the helm files/charts use most of the same target directories as the native agent (which is probably a bad idea) and so I’m assuming that at some point I must have reinstalled the native agent and maybe it found the files/directories in use and fell-back to the /opt directory. The last bit is just a guess, of course.
I’d provide the build method but I can’t run the command
OS: Ubuntu 22.10
Interestingly, when I check the agent info via the API (http://:19999/api/v2/nodes) it indicates that:
I’m running k3s on the node and so I’m guessing that should say “true”?
Also, would it be worthwhile to add the build type info into the data pumped out by that API?