Skip to content

[pull] master from netdata:master#271

Merged
pull[bot] merged 33 commits intoannihilatorrrr:masterfrom
netdata:master
Jul 13, 2024
Merged

[pull] master from netdata:master#271
pull[bot] merged 33 commits intoannihilatorrrr:masterfrom
netdata:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Jul 10, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

ilyam8 and others added 7 commits July 9, 2024 14:29
* ndsudo set uid to 0 before executing command

* set gid and egid to 0 too
* Update securing-netdata-agents.md

Additional action when you disable the local dashboard

* Update docs/netdata-agent/securing-netdata-agents.md

---------

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
* listening ipv6 sockets may be both ipv4 and ipv6, depending on the IPV6_ONLY flag

* working libmnl ipv46 detection and added latency and retransmits from TCP_INFO

* fix aggregations for rtt and retrans

* code cleanup

* code cleanup

* code cleanup again

* restore field renames

* count namespaces

* run namespaces in parallel

* add libmnl to buildinfo

* lock around safe_fork()

* libmnl ports are in network byte order

* posix spawn server for both executables and callback functions

* local-sockets and network-viewer using the new spawn server

* cleanup spawn servers sockets

* spawn server stdin and stdout are linked to /dev/null

* no need for spinlock in spawn server

* empty all parameters

* new spawn server is now used for plugins.d plugins

* fix for environ

* claiming script runs via the new spawn server

* tc.plugin uses the new spawn server

* analytics, buildinfo and cgroups.plugin use the new spawn server

* cgroup-discovery uses the new spawn server

* added ability to wait or kill spawned processes

* removed old spawn server and now alert notifications use the new one

* remove left-overs

* hide spawn server internals; started working on windows version of the spawn server

* fixes for windows

* more windows work

* more work on windows

* added debug log to spawn server

* fix compilation warnings

* enable static threads on windows

* running external plugins

* working spawn server on windows

* spawn server logs to collectoers.log

* log windows last error together with errno

* log updates

* cleanup

* decode_argv does not add an empty parameter

* removed debug log

* removed debug return

* rework on close_range()

* eliminate the need for waitid()

* clear errno on the signal handler

* added universal os_setproctitle() call to support FreeBSD too

* os_get_pid_max() for windows and macos

* isolate pids array from the rest of the code in apps.plugin so that it can be turned to a hashtable
@pull pull bot added the ⤵️ pull label Jul 10, 2024
ilyam8 and others added 22 commits July 10, 2024 21:41
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
* add port service names to network viewer

* use unique function names
* cmakelists remove python puppet

* nuke puppet collector directory

* readme addition

* turn off puppet from python.d.conf

* conf file addition, collector conf file, collector module dir

* fix leftover comments

* net_listeners.conf

* format

* simplify

* check url query in test

* update service discovery

* new line

* Update src/go/plugin/go.d/config/go.d/sd/docker.conf

---------

Co-authored-by: ilyam8 <ilya@netdata.cloud>
Co-authored-by: Ancairon <70198089+Ancairon@users.noreply.github.com>
Co-authored-by: thiagoftsm <49162938+thiagoftsm@users.noreply.github.com>
* spawn server improvements

* fixed message
always send back the spawn server response to the socket
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
add a magic number to all spawn server replies to ensure they are not corrupted
spawn server feedback is always sent from the spawn server itself
ilyam8 and others added 4 commits July 13, 2024 00:04
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
* spawn server reopens the log files after closing all sockets

* close all sockets only when we run an external command

* the spawn server disables all log methods except daemon and collectors
@pull pull bot merged commit 82e189d into annihilatorrrr:master Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants