netdata_netdata/src/cli
vkalintiris 70246b7965
Move daemon/ under src/ (#16933)
2024-02-06 15:32:15 +02:00
..
README.md Move daemon/ under src/ (#16933) 2024-02-06 15:32:15 +02:00
cli.c Create a top-level directory to contain source code. (#16896) 2024-02-01 13:41:44 +02:00

README.md

Netdata Agent CLI

The netdatacli executable provides a simple way to control the Netdata agent's operation.

You can see the commands netdatacli supports by executing it with netdatacli and entering help in standard input. All commands are given as standard input to netdatacli.

The commands that a running netdata agent can execute are the following:

The commands are (arguments are in brackets):
help
    Show this help menu.
reload-health
    Reload health configuration.
reload-labels
    Reload all labels.
save-database
    Save internal DB to disk for database mode save.
reopen-logs
    Close and reopen log files.
shutdown-agent
    Cleanup and exit the netdata agent.
fatal-agent
    Log the state and halt the netdata agent.
reload-claiming-state
    Reload agent claiming state from disk.
ping
    Return with 'pong' if agent is alive.
aclk-state [json]
    Returns current state of ACLK and Cloud connection. (optionally in json)
dumpconfig
    Returns the current netdata.conf on stdout.

See also the Netdata daemon command line options.