github mickem/nscp 0.11.0

pre-release9 hours ago

What's Changed

New experimental client check_nsclient which can be used to check NSClient using the REST interface.
This is planned to eventually replace the nscp cli used today.
This is also available for linux meaning you can remotely configure your NSClient instances using the CLI.

Unfortunately I forgot to attach the binaries to the release so linux binaries will come in the next version.

Currently it is limited and can only list and enable modules (but in the next few weeks it will be extended to support many more features).

check_nsclient nsclient --insecure --password PASSWORD modules list
╭───────────────┬───────────────┬─────────┬────────┬───────╮
│ id            │ title         │ enabled │ loaded │ alias │
├───────────────┼───────────────┼─────────┼────────┼───────┤
│ CheckHelpers  │ CheckHelpers  │ true    │ true   │       │
│ LuaScript     │ LUAScript     │ true    │ true   │       │
│ WEBServer     │ WEBServer     │ true    │ true   │       │
│ CommandClient │ CommandClient │ false   │ true   │       │
│ checksystem   │ CheckSystem   │ true    │ true   │       │
╰───────────────┴───────────────┴─────────┴────────┴───────╯

You can also add --all to show all modules (not just loaded ones) as well as load and enable a module using use:

check_nsclient nsclient --insecure --password PASSWORD modules use checksystem
Successfully loaded and enable module checksystem

You can also change the out to csv, json or yaml:

check_nsclient --output yaml nsclient --insecure --password PASSWORD modules show checksystem
id: checksystem
name: checksystem
title: CheckSystem
description: Various system related checks, such as CPU load, process state, service state memory usage and PDH counters.
enabled: true
loaded: true
metadata:
  alias: ''
  plugin_id: '4'
load_url: /api/v2/modules/checksystem/commands/load
unload_url: /api/v2/modules/checksystem/commands/unload

Feel free to come with suggestions and ideas for this feature.

Full Changelog: 0.10.9...0.11.0

Don't miss a new nscp release

NewReleases is sending notifications on new releases.