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 | sh

This installs pakyas to ~/.local/bin. See CLI Installation for other options.

Terminal window
pakyas --version
Terminal window
pakyas login

This 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.

Terminal window
# Choose the project new checks go into
pakyas project default "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
  • 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:

Terminal window
0 2 * * * /usr/local/bin/pakyas monitor --public-id 550e8400-e29b-41d4-a716-446655440000 -- /path/to/backup.sh

The public ID is shown when you create the check and in pakyas check list.

  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