Skip to main content

Creates checkmk local check file for npm audit output.

Project description

NPM Audit Interpreter and Check MK output generator

This program takes the output of a npm audit --json run and interprets it. The parameters given define the thresholds to be used, and the output is written to the given directory for check mk local checks.

Requirements:

  • An npm installation with the npm audit command available.
> npm_audit_checkmk -f tests/example.json -s 'frontend_vulnerabilities'
<<<local>>>
P frontend_vulnerabilities INFO=0|LOW=7;20|MODERATE=2;10;20|HIGH=55;1;3|CRITICAL=2;0;0 See `npm audit` for more details.

Usage

pushd /path/to/your/project
npm audit --json | npmauditcheckmk -o /var/lib/check_mk_agent/spool/90000_npm_audit.txt
popd

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npm-audit-checkmk-0.1.0.tar.gz (15.7 kB view hashes)

Uploaded Source

Built Distribution

npm_audit_checkmk-0.1.0-py2.py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page