Defender IoT micro agent troubleshooting (Preview)
If an unexpected error occurs, you can use these troubleshooting methods in an attempt to resolve the issue. You can also reach out to the Azure Defender for IoT product team for assistance as needed.
To view the status of the service:
Run the following command
systemctl status defender-iot-micro-agent.service
Check that the service is stable by making sure it is
active, and that the uptime in the process is appropriate.
If the service is listed as
inactive, use the following command to start the service:
systemctl start defender-iot-micro-agent.service
You will know that the service is crashing if, the process uptime is less than 2 minutes. To resolve this issue, you must review the logs.
Validate micro agent root privileges
Use the following command to verify that the Defender IoT micro agent service is running with root privileges.
ps -aux | grep " defender-iot-micro-agent"
Review the logs
To review the logs, use the following command:
sudo journalctl -u defender-iot-micro-agent | tail -n 200
Quick log review
If an issue occurs when the micro agent is run, you can run the micro agent in a temporary state, which will allow you to view the logs using the following command:
sudo systectl stop defender-iot-micro-agent cd /var/defender_iot_micro_agent/ sudo ./defender_iot_micro_agent
Restart the service
To restart the service, use the following command:
sudo systemctl restart defender-iot-micro-agent
Check out the Feature support and retirement.