npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ppdm-alert-bot

v2.0.1

Published

Backup alerting for Dell EMC PPDM and NetWorker — webhook events and proactive SLA and storage checks, sent to Slack, Teams, PagerDuty and email, with an MCP server for Claude Code

Readme

🚨 ppdm-alert-bot

Backup alerting for Dell PowerProtect Data Manager (PPDM) and NetWorker — Slack, Teams, PagerDuty and email, with an MCP server for Claude Code

npm License CI Node

[!IMPORTANT] Upgrading from 1.x: 2.0 verifies PPDM's TLS certificate. If your PPDM uses a self-signed certificate, set PPDM_CA_FILE (see TLS certificates), or the poller's connection will fail. If you registered npx -y ppdm-alert-bot without a version, you already run 2.0. To stay on 1.x until you've set the CA file, register npx -y ppdm-alert-bot@1 (1.x does not verify certificates).


Overview

ppdm-alert-bot turns PPDM and NetWorker events into alerts your team actually sees:

  • Webhook receiver — accepts PPDM job events and NetWorker save set events over HTTP, classifies each one as CRITICAL, WARNING or INFO, and forwards it to the destinations you configure.
  • Proactive PPDM checks — periodically asks PPDM which assets haven't been backed up within your window, and which storage systems are filling up, and raises a WARNING for each one.
  • Daily digest — emails a summary of the last 24 hours of alerts at a fixed UTC hour.
  • MCP server — lets Claude Code send test alerts, inspect the configuration and dry-run the classifier.

Requirements

  • Node.js 20+ (CI runs on 22 and 24)
  • At least one destination: a Slack incoming webhook, a Teams incoming webhook, a PagerDuty Events API v2 routing key, or an SMTP account
  • For SLA and storage checks: network access to the PPDM REST API and an account that can read assets and storage systems

Quick start

npm install -g ppdm-alert-bot@2
ppdm-alert-bot

Configure it with environment variables, or put them in a .env file in the directory you start the bot from; it loads that file automatically. .env.example lists every setting.

To run from source instead:

git clone https://github.com/Moodswing9/ppdm-alert-bot.git
cd ppdm-alert-bot
npm install
npm run build

cp .env.example .env    # then fill in your values
npm start

On start the bot listens for webhooks (port 4000 by default), starts the PPDM poller and digest scheduler if they're configured, and serves its MCP tools over stdio. Log output goes to stderr.

Then point PPDM and NetWorker at the bot:

| Source | URL | |:---|:---| | PPDM | http://<bot-host>:4000/webhook/ppdm | | NetWorker | http://<bot-host>:4000/webhook/networker |

If WEBHOOK_SECRET is set, every request must send the same value in an X-Webhook-Secret header, otherwise it is rejected with 401.


What gets alerted

| Event | Severity | |:---|:---| | PPDM job failed | 🔴 CRITICAL | | PPDM job canceled | 🟡 WARNING | | PPDM job succeeded | 🟢 INFO | | NetWorker save set failed (status failed or code 1) | 🔴 CRITICAL | | NetWorker save set interrupted (status interrupted or code 2) | 🟡 WARNING | | PPDM asset with no backup inside the SLA window (PPDM poller) | 🟡 WARNING | | PPDM storage system above ALERT_STORAGE_PCT (PPDM poller) | 🟡 WARNING |

Other PPDM event types and states are ignored. Set ALERT_FAILED_JOBS=false to stop alerting on failed jobs from both PPDM and NetWorker.

Where each severity goes

| Destination | CRITICAL | WARNING | INFO | |:---|:---:|:---:|:---:| | Slack | ✅ | ✅ | ✅ | | Teams | ✅ | ✅ | ✅ | | PagerDuty | ✅ | — | — | | Email | ✅ | ✅ | — |

Slack and Teams receive INFO alerts too, which means one message per successful PPDM backup. On a busy server, consider a dedicated channel.


Configuration

All settings are environment variables, read from the shell or from .env.

Webhook listener

| Variable | Description | Default | |:---|:---|:---| | PORT | HTTP port for webhooks | 4000 | | WEBHOOK_SECRET | Shared secret expected in the X-Webhook-Secret header. Strongly recommended; without it the endpoint accepts anyone's requests | — | | ALERT_FAILED_JOBS | Set to false to suppress failed-job alerts (PPDM and NetWorker) | true |

Destinations (set at least one)

| Variable | Description | |:---|:---| | SLACK_WEBHOOK_URL | Slack incoming webhook URL | | TEAMS_WEBHOOK_URL | Microsoft Teams incoming webhook URL | | PAGERDUTY_ROUTING_KEY | PagerDuty Events API v2 routing key | | EMAIL_HOST, EMAIL_PORT, EMAIL_USER, EMAIL_PASS, EMAIL_TO | SMTP settings for email alerts and the digest. EMAIL_PORT defaults to 587 | | EMAIL_FROM | Sender address. Defaults to EMAIL_USER |

PPDM poller (SLA and storage checks)

The poller runs only when PPDM_HOST, PPDM_USER and PPDM_PASS are all set. Each run checks every asset and storage system, across all pages of results.

| Variable | Description | Default | |:---|:---|:---| | PPDM_HOST | PPDM hostname or IP | — | | PPDM_USER / PPDM_PASS | PPDM credentials | — | | PPDM_PORT | PPDM HTTPS port | 8443 | | PPDM_CA_FILE | PEM file with the CA that signed PPDM's certificate, or PPDM's own self-signed certificate. See TLS certificates | — | | SLA_POLL_INTERVAL_MINS | Minutes between checks. The first check runs at startup | 60 | | SLA_WINDOW_HOURS | An asset is in breach if its last backup is older than this, or it has never been backed up | 24 | | ALERT_SLA_BREACH | Set to false to turn the SLA check off | true | | ALERT_STORAGE_PCT | Warn when a storage system is more than this percent full. off turns the storage check off | 85 |

Daily digest

| Variable | Description | Default | |:---|:---|:---| | DIGEST_HOUR | UTC hour to email the digest. Requires the SMTP settings above | 8 |


Use with Claude Code (MCP)

Register it with Claude Code, passing your settings with -e:

claude mcp add ppdm-alert-bot \
  -e SLACK_WEBHOOK_URL=https://hooks.slack.com/services/... \
  -e PPDM_HOST=ppdm.example.com -e PPDM_USER=admin -e PPDM_PASS=... \
  -- npx -y ppdm-alert-bot@2

Add any other variables from Configuration the same way.

The first npx start downloads the package and can take up to a minute. For instant starts, install it once with npm install -g ppdm-alert-bot@2 and register -- ppdm-alert-bot instead of -- npx -y ppdm-alert-bot@2.

The @2 pins the major version, so a future breaking release never reaches you without you choosing it.

| Tool | What it does | |:---|:---| | send_test_alert | Sends a test alert of a chosen severity to every configured destination | | get_alert_config | Shows every setting: port, webhook secret, each destination, the PPDM connection and which checks are on | | classify_event | Classifies a raw PPDM or NetWorker payload and shows the alert it would produce, without sending it | | check_sla_now | Runs an SLA check against PPDM right now (optionally with a different window), sends a WARNING per breached asset, and lists them |

When Claude Code starts the MCP server, the same process also opens the webhook port and starts the SLA poller and digest. Don't register it in Claude Code on a machine that's already running the bot as a service, or both will compete for the port.


Known limitations

  • TLS certificates are verified for the PPDM connection (since 2.0.0). See TLS certificates.

TLS certificates

PPDM usually ships with a self-signed certificate, which the poller refuses: certificates are always verified, and there is no option to turn that off. Trust PPDM's certificate with PPDM_CA_FILE. To fetch it:

openssl s_client -connect ppdm.example.com:8443 -showcerts </dev/null 2>/dev/null   | openssl x509 -outform PEM > ppdm-ca.pem

Check its fingerprint (openssl x509 -in ppdm-ca.pem -noout -fingerprint -sha256) against the PPDM UI or console before trusting it. Node's NODE_EXTRA_CA_CERTS also works if you'd rather trust a CA process-wide.

  • Repeat alerts. A breached asset or a full storage system is reported again on every poll until it's resolved.
  • Storage fields. Storage usage is read from usedPercentage, or computed from usedCapacity / totalCapacity (the same mapping ppdm-capacity-planner uses).

Development

npm run dev      # run from source with tsx
npm run build    # compile TypeScript to dist/
npm test         # run the tests (no network access needed)

The source is in src/: index.ts (webhook server and MCP tools), classifier.ts (severity rules), notifier.ts (destinations), sla-poller.ts and digest-scheduler.ts.

See CONTRIBUTING.md to contribute and CHANGELOG.md for release history.