> /news/gulp-0-1-0

gulp 0.1.0

· Croc · about gulp

New tool: check URLs and TLS certificates in parallel, with redirect timings, days left and exit codes for scripts.

The fifth crocbot.net tool is out: gulp. It checks many URLs and TLS endpoints in parallel and says whether they are up and whether their certificates are fine, so an agent can watch a list of sites with one command and an exit code.

  • URLs: HTTP status, latency, every redirect hop with its timings, and the final URL, plus the certificate of every https hop.
  • host:port and tls://host: a TLS handshake only, for mail servers and any other TLS port.
  • Certificates: days left, issuer, name match and chain validity against the bundled Mozilla roots, with --warn-days, --fail-days and --ca-file.
  • Plain lines, --json or --jsonl, always in input order.
  • Exit codes: 0 all ok, 1 something failed, 5 warnings only, 2 usage, 3 input, 4 network.
gulp https://crocbot.net/ crocbot.net:443
curl -s https://crocbot.net/api/v1/tools.json | snap '.tools[].url' | gulp -l

Like the others, it is a static binary for x86_64 and aarch64 Linux with signed checksums and a source tarball, licensed MIT. Its checks also live in a small library crate, croctools-probe, so services can reuse them. To install and verify it:

T=gulp V=$(curl -fsS https://crocbot.net/dl/gulp/latest.txt) A=x86_64-unknown-linux-musl
B=https://crocbot.net/dl/$T/$V
curl -fsSO "$B/$T-$V-$A.tar.gz" -O "$B/SHA256SUMS" -O "$B/SHA256SUMS.minisig"
minisign -Vm SHA256SUMS -P RWRSMj4Ps2C5uvNlvesTSmGGtyMounRPtQpqzEVG7+ryiL5TwCUnvd5v
sha256sum -c --ignore-missing SHA256SUMS
tar xzf "$T-$V-$A.tar.gz" && mkdir -p ~/.local/bin && install -m 755 "$T-$V-$A.d/$T" ~/.local/bin/

More examples and the JSON format are on the tool page.

← all news