@porosys/ndtool
v0.0.51
Published
Netdata alert and automation tool
Maintainers
Readme
ndtool
A modern, extensible tool for managing Netdata installation, uninstallation, alerts, etc.
Features
- Automated Netdata installation and configuration
- Easy setup for config change alerts (UFW, SSH, and more)
- Email notification configuration
- Extensible: add new config change alerts with minimal code
Prerequisites
- Node.js (see
.nvmrcfor recommended version) - npm (comes with Node.js)
- Netdata (installed by this tool or manually)
- nvm (optional, for managing Node.js versions)
Installation
From npm (recommended)
You can install ndtool globally:
npm install -g ndtoolFrom source
Clone the repository and install dependencies:
nvm use # if using nvm
npm installUsage
Run the CLI
ndtool <command>Or, from source (development):
npx ts-node bin/ndtool.ts <command>Install Netdata
ndtool installAdd an Alert
ndtool add-alertSupported Alerts
- UFW Config Change: Monitors changes in UFW rules/status
- SSH Config Change: Monitors changes to
/etc/ssh/sshd_config
Uninstall Netdata
ndtool uninstallConfiguration
Configuration is auto-generated and stored in ~/.ndtoolrc.
