Getting Started
Get your first cron job monitored in under 5 minutes.
Quick Start with curl
Section titled “Quick Start with curl”The simplest way to monitor a job is with a single curl command. No installation required.
1. Create a Check
Section titled “1. Create a Check”Log in to Pakyas and create a new check. You’ll get a unique ping URL like:
https://ping.pakyas.com/{public_id}2. Ping from Your Cron Job
Section titled “2. Ping from Your Cron Job”Add a curl command to your cron job:
# Simple success ping0 * * * * /path/to/backup.sh && curl -fsS https://ping.pakyas.com/{public_id}Or use start/success/fail signals:
#!/bin/bashcurl -fsS https://ping.pakyas.com/{public_id}/start
if /path/to/backup.sh; then curl -fsS https://ping.pakyas.com/{public_id}else curl -fsS https://ping.pakyas.com/{public_id}/failfiInstall the CLI
Section titled “Install the CLI”The pakyas CLI provides better ergonomics and features like automatic exit code capture.
macOS & Linux
Section titled “macOS & Linux”curl -fsSL https://pakyas.com/install.sh | shThis installs pakyas to ~/.local/bin. See CLI Installation for other options.
Verify Installation
Section titled “Verify Installation”pakyas --versionAuthenticate
Section titled “Authenticate”pakyas loginThis opens your browser for authentication. The CLI then stores an API key for your organization in its config directory and selects the organization’s first project as the default.
Create Your First Check
Section titled “Create Your First Check”# Choose the project new checks go intopakyas project default "My Project"
# Create a check with cron schedulepakyas check create backup-nightly --cron "0 2 * * *" --tz Asia/Manila
# Or with intervalpakyas check create api-heartbeat --every 5m
# Interactive mode (prompts for all options)pakyas check create my-check -iThe CLI automatically derives a sensible grace period (10% of interval, clamped to 5min-1hour) if not specified.
Wrap a Cron Job
Section titled “Wrap a Cron Job”The easiest way to monitor a job is with pakyas monitor:
# In your crontab0 2 * * * pakyas monitor backup-nightly -- /path/to/backup.shThis automatically:
- Sends a
/startping when the job begins - Passes the job’s stdout/stderr through unchanged
- Sends a success or failure ping with the exit code
- Includes the tail of the error output in failure notifications
Cron runs with a minimal PATH, so use the full path (~/.local/bin/pakyas) if needed. For cron jobs that run as another user, ping by public ID, which needs no login:
0 2 * * * /usr/local/bin/pakyas monitor --public-id 550e8400-e29b-41d4-a716-446655440000 -- /path/to/backup.shThe public ID is shown when you create the check and in pakyas check list.
What Happens When Things Go Wrong?
Section titled “What Happens When Things Go Wrong?”- Job misses schedule - If no ping arrives within period + grace, you get a “missed” alert
- Job fails - If a
/failping or non-zero exit code is sent, you get a “failed” alert - Job runs too long - If max_runtime is set and exceeded, you get a “running long” alert
Next Steps
Section titled “Next Steps”- CLI Reference - Full command reference
- CLI Configuration - Flags, environment variables, CI setup
- API Reference - Direct HTTP integration
- External Monitors - Migrate from healthchecks.io or Cronitor