Prerequisites
- Linux with systemd (Ubuntu 16.04+, CentOS 7+, Debian 8+)
- CertWatch Agent installed in
/usr/local/bin/cw-agent - Configuration file at
/etc/certwatch/certwatch.yaml
Setup
1. Create a System User
Create a dedicated user for running the agent:2. Create Configuration Directory
3. Create Configuration File
4. Create Service File
Create/etc/systemd/system/cw-agent.service:
5. Enable and Start
Managing the Service
Configuration Changes
After modifying/etc/certwatch/certwatch.yaml:
Log Rotation
Logs are managed by journald. To configure retention:Troubleshooting
Service Won’t Start
Check the logs:- Permission denied: Ensure
certwatchuser owns the config file - Config validation failed: Run
cw-agent validate -c /etc/certwatch/certwatch.yaml - API key invalid: Verify the API key in your config

