Appearance
Integration Commands
Integration commands connect SafeCall with external host services.
safecall integrations server
Configures reverse proxy integration with Apache, Nginx, or Caddy.
Usage
bash
sudo ./util.sh integrations server
sudo ./util.sh integrations server --server caddy --host safecall.example.com --port 8088 --ssl
sudo ./util.sh integrations server --print-samples
sudo ./util.sh integrations server --non-interactiveOptions
| Option | Meaning |
|---|---|
--server <server> | Force server type (apache, nginx, caddy) |
--host <host> | Public host/domain/IP |
--port <port> | SafeCall upstream HTTP port |
--ssl | Enable TLS mode |
--print-samples | Print sample configs and exit without changes |
--non-interactive | Apply defaults and skip prompts |
Behavior highlights
- Auto-detects installed servers.
- If none are installed, recommends Caddy and can install server packages.
- Creates/updates server config and restarts related service.
- Emits an integration report listing packages installed, files changed, services restarted, and commands executed.
- For IP targets with TLS, can generate self-signed certificates.
When to use
- Initial production exposure of SafeCall over HTTP/HTTPS.
- Repointing to different hostnames/ports.
- Rebuilding broken reverse-proxy configs.
safecall integrations monit
Installs/configures Monit and health-notification checks.
Usage
bash
sudo ./util.sh integrations monitBehavior highlights
- Installs
monitif missing. - Creates a service check script in install directory.
- Creates
/etc/monit/conf.d/<service_name>.conf. - Uses transition-aware notifications (notify on down and recovery).
Hidden behavior
For automation/VM testing, prompts can be bypassed with environment variables:
SAFECALL_MONIT_RECIPIENTSAFECALL_MONIT_SENDERSAFECALL_MONIT_PASSWORD
safecall integrations cron
Sets up daily automatic updates.
Usage
bash
sudo ./util.sh integrations cronBehavior highlights
- Adds daily
0 0 * * * <install_dir>/util.sh update. - Detects and avoids duplicate entries.
- Removes legacy
updater.shcron entries if found.
When to use
- After migrating from 4.x, to install/repair the modern daily update cron job.
- When legacy
updater.shcron entries exist and should be replaced automatically. - See Migrating from 4.x for full migration flow.
safecall integrations zabbix
SafeCall-to-Zabbix integration commands:
safecall integrations zabbix setupsafecall integrations zabbix doctorsafecall integrations zabbix verify
For full details, see the dedicated Zabbix page.
Legacy command migration
Direct commands were removed (safecall nginx, safecall monit, safecall cron).