Skip to content

Getting Started

Get your first cron job monitored in under 5 minutes.

The simplest way to monitor a job is with a single curl command. No installation required.

Log in to Pakyas and create a new check. You’ll get a unique ping URL like:

https://ping.pakyas.com/{public_id}

Add a curl command to your cron job:

Terminal window
# Simple success ping
0 * * * * /path/to/backup.sh && curl -fsS https://ping.pakyas.com/{public_id}

Or use start/success/fail signals:

#!/bin/bash
curl -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}/fail
fi

The pakyas CLI provides better ergonomics and features like automatic exit code capture.

Terminal window
curl -fsSL https://pakyas.com/install.sh | bash
Terminal window
curl -fsSL https://pakyas.com/install.sh | bash
Terminal window
pakyas --version
Terminal window
pakyas login

This opens your browser for authentication. Once logged in, the CLI stores credentials securely.

Terminal window
# Switch to your project
pakyas project switch "My Project"
# Create a check with cron schedule
pakyas check create backup-nightly --cron "0 2 * * *" --tz Asia/Manila
# Or with interval
pakyas check create api-heartbeat --every 5m
# Interactive mode (prompts for all options)
pakyas check create my-check -i

The CLI automatically derives a sensible grace period (10% of interval, clamped to 5min-1hour) if not specified.

The easiest way to monitor a job is with pakyas monitor:

Terminal window
# In your crontab
0 2 * * * pakyas monitor backup-nightly -- /path/to/backup.sh

This automatically:

  • Sends a /start ping when the job begins
  • Captures stdout/stderr
  • Sends success or failure ping with exit code
  • Includes error output in failure notifications
  1. Job misses schedule - If no ping arrives within period + grace, you get a “missed” alert
  2. Job fails - If a /fail ping or non-zero exit code is sent, you get a “failed” alert
  3. Job runs too long - If max_runtime is set and exceeded, you get a “running long” alert