Quick Start Guide
Get started with Guardian in minutes.
Prerequisites
- Linux system(s) to monitor
- Active Guardian license
- Administrator access to your systems
Installation Steps
- Install the Guardian Agent
For RPM-based distributions (AlmaLinux, RHEL etc):
# Add the repository
echo """
[rpm]
name=rpm
baseurl=https://packages.codenotary.org/rpm
enabled=1
repo_gpgcheck=1
gpgkey=https://packages.codenotary.org/rpm/public.gpg
""" > /etc/yum.repos.d/rpm.repo
# Then install Guardian
# Run: yum install guardian-inspector
For APT-based distributions (Debian, Ubuntu etc):
# Add the repository
apt update && apt install -y curl gnupg
curl https://packages.codenotary.org/apt/public.gpg | gpg --yes --dearmor -o /usr/share/keyrings/openrepo-apt.gpg
# Configure the source
echo "deb [arch=any signed-by=/usr/share/keyrings/openrepo-apt.gpg] https://packages.codenotary.org/apt/ stable main" > /etc/apt/sources.list.d/openrepo-apt.list
# Refresh the available package sources
apt update
# Install Guardian
apt-get install guardian-inspector
- Configure the Agent
Edit the configuration file at /etc/guardian-inspector/inspector.yaml:
base-url: https://guardian.codenotary.com
logfile: /var/log/guardian-inspector/inspector.log
statefile: /var/cache/guardian-inspector/inspector.json
time-between-runs: 23h
apikey: YOUR_API_KEY_HERE
- Start Monitoring
Run your first scan:
su -s /bin/bash nobody -c "guardian-inspector --config /etc/guardian-inspector/inspector.yaml"