Troubleshooting
This guide helps you diagnose and resolve common issues with the LinuxGuard agent.
Agent Logs
The primary source of information for troubleshooting is the agent log file. The LinuxGuard agent writes detailed logs that can help identify issues.
Log File Location
The agent log file is located at:
/var/log/linuxguard/agent.logViewing Logs
To view the agent logs:
sudo tail -f /var/log/linuxguard/agent.logTo view the last 100 lines:
sudo tail -n 100 /var/log/linuxguard/agent.logTo search for errors:
sudo grep -i error /var/log/linuxguard/agent.logCommon Issues
Enrollment Failures
Problem: Agent fails to enroll with error messages.
Solutions:
Verify your API key and Tenant ID are correct
Check network connectivity:
curl -v https://api.linuxguard.io/v1/Ensure the agent has proper permissions (run with
sudo)Check firewall rules allow outbound HTTPS connections
Review the agent log file for specific error messages
Agent Not Sending Data
Problem: Agent enrolled successfully but no data appears in the console.
Solutions:
Verify the agent service is running:
sudo systemctl status linuxguard-agentCheck if the agent process is running:
ps aux | grep linuxguard-agentReview agent logs for connection errors
Verify network connectivity to
api.linuxguard.ioCheck system time is synchronized (NTP)
Installation Issues
Problem: Unable to install the agent package.
Solutions:
Ensure the repository was added successfully
Update your package manager cache:
Debian/Ubuntu:
sudo apt updateRedHat/CentOS:
sudo dnf makecacheorsudo yum makecacheAlpine:
sudo apk update
Verify repository signing keys are installed
Check for conflicting packages
Review system package manager logs
Permission Errors
Problem: Permission denied errors when running agent commands.
Solutions:
Ensure you're using
sudofor agent commandsVerify your user has sudo privileges
Check file permissions on agent binaries and configuration files
Review SELinux/AppArmor policies if applicable
Network Connectivity Issues
Problem: Agent cannot connect to LinuxGuard API.
Solutions:
Test connectivity:
curl -v https://api.linuxguard.io/v1/Check firewall rules (allow outbound HTTPS on port 443)
Verify proxy settings if behind a corporate proxy
Check DNS resolution:
nslookup api.linuxguard.ioReview network security group rules (cloud environments)
Getting Help
If you're unable to resolve an issue using this guide:
Check the logs: Review
/var/log/linuxguard/agent.logfor detailed error messagesGather information: Note the error messages, your distribution version, and any relevant system information
Contact Support: Reach out to [email protected] with:
Description of the issue
Relevant log excerpts
Your distribution and version
Steps you've already tried
Our support team is available 24/7 and will help you resolve any issues.
Related: Support | Configuration
Last updated
Was this helpful?