Emergency server help: get in touch

Scripts

Downloadable scripts and automation for server administrators.

Scripts for server administrators, each with its testing level and evidence on the release page. Most are free and released under the MIT License unless the script page says otherwise. Read before you run. For DNS, SSL and email checks from your own terminal, try the free srvs command-line tool. Press / to search.

49 scripts

All scripts

cPanel PHP Stale-Worker Check

Read-only script that finds lsphp / php-fpm workers still running a replaced PHP binary after an update — the reason a cPanel site keeps reporting the old version.

October 28, 2026

MariaDB Watchdog Script: Restart MariaDB or MySQL Only When It Is Really Hung

A Bash watchdog for MariaDB and MySQL: checks that the server answers SELECT 1 within a time limit, saves diagnostics, and restarts only when you allow it and only when it is safe: not during startup or crash recovery, not during a backup, at most twice an hour. Report-only by default.

October 18, 2026

PBX Support Bundle for Asterisk and FreePBX: Share Diagnostics Without Passwords

A Bash script that collects what a consultant or your SIP provider asks for (versions, PJSIP transports, endpoints, registrations, selected configs and recent logs) into a private archive, with passwords, digest values, keys, e-mail addresses, public IPs and phone numbers masked. Nothing is uploaded.

October 17, 2026

SIP TLS Certificate Check for Asterisk and FreePBX (TLS and WSS)

A read-only Bash script that checks every SIP TLS certificate an Asterisk or FreePBX server uses (PJSIP TLS transports and the WSS server WebRTC phones connect to): days left, host name, chain, private key, and whether Asterisk still serves an old certificate after a renewal.

October 17, 2026

SIPp Call Load Test for Asterisk and FreePBX, Checked Against the CDR

A Bash wrapper around SIPp that registers as one of your extensions, places a controlled burst of calls through Asterisk or FreePBX and then reads the call records, so calls the PBX answered itself are reported as false successes instead of delivered calls.

October 17, 2026

Call Recording Retention Cleaner: Delete or Archive Old FreePBX Recordings

A Bash script that enforces a retention period on Asterisk and FreePBX call recordings. It is a dry run by default, can archive old recordings into a verified tar.gz before deleting them, skips calls still being recorded, can stop the FreePBX call log linking to removed files, and can run only when the disk is filling up.

October 16, 2026

FreePBX Off-Site Backup Script: Databases, Config and Voicemail over rsync

A Bash script that backs up a FreePBX or Asterisk server without the FreePBX Backup module: both databases, the Asterisk internal database, configuration, voicemail, prompts and provisioning files, with checksums, a read-back check, an rsync/SSH copy to another server that is verified, and pruning of old sets.

October 16, 2026

VoIP Toll Fraud Watch: Alert on International and After-Hours Calls in Asterisk

A Bash script that reads the Asterisk or FreePBX call records every few minutes and raises an alarm on the patterns of toll fraud: bursts of international or premium-rate calls, long international talk time, calls outside office hours, one extension making far more calls than usual, and transit calls that come in on a trunk and go straight back out.

October 16, 2026

Asterisk Security Audit: Check FreePBX for Toll Fraud Risks and Exposed Ports

A read-only Bash audit for Asterisk and FreePBX that finds the settings behind toll fraud and hijacked PBXs: unsupported versions, public AMI or IAX2, weak SIP passwords, anonymous SIP, trusted IPs in internal contexts, a blind fail2ban jail and unprotected international routes, each with a one-line fix.

October 16, 2026

PJSIP Health Check: Monitor Asterisk Trunks, Registrations and Phones

A read-only Bash script that checks Asterisk and FreePBX PJSIP trunks, outbound registrations, contact round-trip times, phones and active calls, with Nagios-style exit codes, JSON output and mail or webhook alerts when something changes.

October 16, 2026

Process Hog Report: Which Account Is Using the CPU, RAM and Disk

A read-only Bash script that samples /proc twice and shows which accounts and processes are using the CPU, memory and disk, with each account's domain on cPanel and DirectAdmin, the I/O wait, stuck processes, and a cron mode that only reports when the load is high.

October 11, 2026

Secure Boot 2023 Certificate Check: PowerShell Script for Many PCs

Free read-only PowerShell script that checks Secure Boot, the 2023 Microsoft certificates in DB and KEK, UEFICA2023Status and events 1801/1808 on many Windows computers.

October 6, 2026

Free website test

Is your website set up right?

Check SSL, security headers, redirects, robots.txt, sitemap, llms.txt and security.txt in one test. It takes about 30 seconds.