Log inStart monitoring →

PHP INTEGRATION

Monitor PHP jobs with a simple heartbeat

Standalone PHP scripts often run without a dashboard or visible user request. Add a small cURL call after successful work so Upnora can detect when the script stops reporting.

Job runs↓
Heartbeat sent↓
Upnora receives it✓
GET /h/YOUR_KEY/YOUR_TOKEN

WHAT CAN FAIL

Why this job can stop silently.

01

Failure signal

A server cron entry no longer runs the script.

02

Failure signal

A backup or import exits with an error.

03

Failure signal

A PHP process is killed before it reaches its success signal.

BASIC INTEGRATION

Send the heartbeat after successful work.

Use the unique GET URL provided by your Upnora dashboard. The examples are generic: replace them with your monitor URL and keep it in an environment variable or secret.

$ch = curl_init(getenv('UPNORA_HEARTBEAT_URL')); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_exec($ch); curl_close($ch);

IMPLEMENTATION NOTES

Keep the signal meaningful.

Store the monitor URL in UPNORA_HEARTBEAT_URL and call it only after the relevant task has completed. Never copy a real token into a public repository.

See scheduled task monitoring →
Common mistake

A heartbeat before the task would report success when the job has not done its work.

Wrong: heartbeat → run the job
Better: run the job → heartbeat

MORE HEARTBEAT INTEGRATIONS

Use Upnora with your stack.

FAQ

PHP heartbeat monitoring, simply explained.

How do I monitor a PHP cron job?

Run the PHP task, then call the heartbeat URL provided by the Upnora dashboard.

Where should I store the heartbeat URL?

Use an environment variable or CI/CD secret.

What happens if the PHP script fails?

If it fails before the heartbeat call, Upnora can detect the overdue monitor.

ADD A SUCCESS SIGNAL

Monitor your first PHP job.

Create a heartbeat monitor →