A tool to check resavation on nasne and to post to slack.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
.gitignore
LICENSE
README.md
package.json

README.md

nasne-checker

npm version

A tool to check resavation on nasne and post to slack.

Install

$ npm i nasne-checker -g

Usage

Usage: nasne-checker [options]

Options:

  -h, --help             output usage information
  -V, --version          output the version number
  --nasne <host>         Nasne host (required)
  --slack <url>          Slack webhook url (required)
  --cron <format>        Cron format (optional)
  --timezone <timezone>  When using cron option (Default is "Asia/Tokyo")

Example:

$ nasne-checker \
  --nasne 192.168.10.10 \
  --slack https://hooks.slack.com/services/XXX/XXX/XXXXX \
  --cron "00 20 * * 1,3,5"

Changelog

  • 1.0.0: First release.
  • 1.1.0: Support the case the reservation does not exist.
  • 1.1.1: Remove nasne module.
  • 1.1.2: Fix the message.
  • 1.1.3: Fix interval option bug.
  • 1.2.0: Add cron option and remove interval option.
  • 1.2.1: Fix a bug that is executed first once when the cron option is enabled.

License

MIT