Skip to content
Kandaro
Book a demo

EDR

Early access

Troubleshooting

Two commands on the machine answer most questions: status says what the agent is doing, and doctor checks each step and tells you what to fix. Neither changes anything.

Start here

Terminal, as an admin
sudo kandaro-agent status     # is it running, connected and sending?
sudo kandaro-agent doctor     # check each step and say what to do
journalctl -u kandaro-agent   # the agent's own log

Run them as root: the agent's files can only be read by root. In the Console, SOC → Fleet health lists the machines whose agent needs a look (Keep machines healthy).

What status tells you

status reads the agent's own state file; it doesn't contact Kandaro. Line by line:

  • Running or not, with the version and how long it has been up. When the agent isn't running, the command says when it was last seen and exits with code 3, so a script can tell.
  • Enrolment: approved, or still waiting for an admin, with the key fingerprint to compare in the Console.
  • Connection: whether it is connected, over the long-lived connection or the slower fallback, when it last sent something and the last time Kandaro refused it.
  • The local store: how much is waiting to be sent, whether any source is paused because the store is full, and how many records had to be dropped.
  • Each part of the agent: running, or stopped after repeated crashes, with a reason.

Add --json to either command for output a script can read.

What each doctor check means

doctor runs these checks in this order and marks each one ok, warning, failed or skipped. A check is skipped when an earlier one failed or it doesn't apply to this machine, so fix the first failure and run it again. The command exits with code 1 when a check failed.

Running with administrator rights

If it fails: The command was run as an ordinary user, so it can’t read the agent’s files and the other checks can’t run.

What to do: Run the command again as root (sudo) or from an administrator prompt.

Bootstrap file

If it fails: The small settings file written at install time is missing or can’t be read, so the agent doesn’t know which Kandaro address to use.

What to do: Reinstall the agent with the install command from the Kandaro console, which writes the bootstrap file.

Data folder ownership and access

If it fails: The agent’s data folder belongs to the wrong user or can be read by others. The agent refuses to keep keys and events in a folder like that.

What to do: Make the agent's data folder owned by root (SYSTEM on Windows) with no access for anyone else, or reinstall the agent.

Agent service

If it fails: The agent’s service isn’t running, or isn’t installed.

What to do: Start the Kandaro agent service; if it is not installed, reinstall the agent.

Proxy settings

If it fails: The proxy setting isn’t one the agent understands.

What to do: Set proxy in the bootstrap file to system, none or the address of your proxy, then restart the agent service.

Name lookup of the Kandaro address

If it fails: The machine can’t look up Kandaro’s address.

What to do: Check this machine's DNS settings and that your DNS filter allows the Kandaro address.

Connection to port 443

If it fails: The name was found, but a connection to port 443 can’t be made. A firewall or proxy is usually in the way.

What to do: Allow outbound connections from this machine to the Kandaro address on port 443 in your firewall or proxy.

Secure connection

If it fails: A connection was made, but a secure connection on top of it failed. A proxy that opens secure traffic, a firewall that cuts it or a wrong clock cause this.

What to do: If a company proxy opens secure traffic, exclude the Kandaro address from inspection; otherwise check the firewall and the clock.

The other side is really Kandaro

If it fails: The other end of the connection couldn’t prove it is Kandaro. Something between the machine and Kandaro is answering in its place.

What to do: Do not enrol this machine over this connection: check for a proxy or device that changes traffic to the Kandaro address, then contact Kandaro support.

Clock

If it fails: The machine’s clock is more than five minutes off, and Kandaro refuses requests stamped with the wrong time.

What to do: Turn on time synchronisation (NTP) so this machine's clock is within five minutes of the real time.

Enrolment

If it fails: The machine isn’t enrolled yet, or it is and waits for an admin’s approval.

What to do: Enrol the agent with an install token from the Kandaro console, or approve it there if it is waiting.

If it fails: The agent is enrolled but isn’t connected to Kandaro right now, or Kandaro refused it.

What to do: Check the network checks above; if Kandaro refused this agent, look it up in the Kandaro console.

Identity certificate

If it fails: The certificate the machine identifies itself with is about to run out or has run out. This happens when a machine was switched off for a long time.

What to do: Keep the agent running and connected so it can renew its certificate; if it has expired, enrol the agent again.

Local store of unsent records

If it fails: The local store of records waiting to be sent is full, nearly full or damaged.

What to do: Restore the link to Kandaro so the store can drain, and free disk space if the disk is nearly full.

Settings in effect

If it fails: The settings the agent should be running can’t be read.

What to do: Restart the agent service; if the settings still cannot be read, send a support bundle to Kandaro support.

Module

If it fails: One part of the agent has stopped, usually after crashing several times. The rest keeps working.

What to do: Restart the agent service; if the module stops again, send a support bundle to Kandaro support.

Response helper

If it fails: The helper that carries out approved actions isn’t installed properly, so actions that change the machine can’t run.

What to do: Reinstall the agent so the response helper is installed; until then approved actions that need it cannot run.

Common situations

  • The machine never appears in the Console. Run doctor. It is usually the network (Network requirements), a proxy that opens secure traffic (why that stops it), or an install code or token that expired or was used up. An install code from the Add machines page works only once.
  • It appears but stays “waiting”. An admin has to approve it (Approve the machine). Nothing is collected before that.
  • It is connected but you see no events. Check the local store and the parts of the agent in status, and what the machine sent with sudo kandaro-agent sent.
  • It hasn't updated. The Console gives the reason for every machine (Why hasn't this machine updated?).

See what was sent, and with which settings

sudo kandaro-agent sent --since 1h lists what the machine sent to Kandaro, from a local log kept for 14 days: per batch, which part of the agent, which source, how many records and how large. It shows counts and sizes, never contents, and masks user names in folder paths. sudo kandaro-agent config show prints the settings in use, with secrets removed.

Send us a support bundle

When you ask us for help, a support bundle saves a round of questions. It is one archive with the agent's status, the results of the checks, the settings in use and recent lines of the agent's log. It never holds keys or events.

Terminal, as an admin
sudo kandaro-agent support-bundle --out /root/kandaro-support.tar.gz

Look inside before you send it if you like: it is an ordinary archive. Then attach it to a request under Support in the Console.