Skip to content

Ctor 1718 plugin app nutanix prism api plugin new plugin#6270

Open
psamecentreon wants to merge 27 commits into
developfrom
CTOR-1718-plugin-app-nutanix-prism-api-plugin-new-plugin
Open

Ctor 1718 plugin app nutanix prism api plugin new plugin#6270
psamecentreon wants to merge 27 commits into
developfrom
CTOR-1718-plugin-app-nutanix-prism-api-plugin-new-plugin

Conversation

@psamecentreon

Copy link
Copy Markdown
Contributor

Community contributors

Description

New plugin to monitor Nutanix Prism.

Modes Available:

  • alerts.pm
  • capacity.pm
  • clusterstatus.pm
  • disksstatus.pm
  • healthchecks.pm
  • hostsusage.pm
  • listhosts.pm
  • listnics.pm
  • listprotectiondomains.pm
  • liststoragecontainers.pm
  • listvms.pm
  • protectiondomains.pm
  • snapshots.pm
  • storagecontainers.pm
  • storageusage.pm
  • tasks.pm
  • vmscount.pm
  • vmsnics.pm
  • vmsperformance.pm

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Functionality enhancement or optimization (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

How this pull request can be tested ?

Nutanix offers a free edition: Nutanix CE (Community Edition).

  • Available to download from next.nutanix.com
    *Prism Element included, API v2.0 available
    *Hardware requirements: requires a compatible physical server (specific Intel network, not just any VM) — can also run in a nested VMware environment with a special configuration, but this is unstable
    Suitable for a dedicated lab

It can also be checked in this way:

Nutanix offers temporary access to a real hosted cluster via Test Drive (nutanix.com/test-drive).

  • Access to the real Prism Element, with API available
  • Time-limited session (~2 hours per session, renewable)
  • Sufficient to validate connectivity and perform an end-to-end test
  • Not suitable for repeatable automated tests

Checklist

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (develop).
  • In case of a new plugin, I have created the new packaging directory accordingly.
  • I have implemented automated tests related to my commits.
    • Data used for automated tests are anonymized.
  • I have reviewed all the help messages in all the .pm files I have modified.
    • All sentences begin with a capital letter.
    • All sentences end with a period.
    • I am able to understand all the help messages, if not, exchange with the PO or TW to rewrite them.
  • After having created the PR, I will make sure that all the tests provided in this PR have run and passed.

claude and others added 24 commits June 10, 2026 09:37
Adds a new plugin to monitor Nutanix infrastructure via the Prism v2.0 REST API.

Modes:
- cluster-status: cluster state and node count
- hosts-usage: CPU/memory usage and VM count per AHV host
- storage-usage: storage pool capacity/free/usage%
- vms-count: total/on/off VM counts
- list-hosts: discovery of physical hosts
- list-vms: discovery of virtual machines

https://claude.ai/code/session_01PXMdAKHbDqnPokz5BHWAQp
- disksstatus: monitor physical disk state (NORMAL/FAILED), online status,
  capacity, free space and usage% per disk with node/id filters
- snapshots: monitor snapshot count (global + per VM) and oldest snapshot
  age per VM with human-readable output (days/hours/minutes)
- vmsnics: monitor VM NIC connectivity status and network traffic (in/out)
  with filters by VM name, MAC address and network name
- plugin.pm: register the 3 new modes
- custom/api.pm: add get_disks(), get_snapshots() and get_vm_nics() methods

https://claude.ai/code/session_01PXMdAKHbDqnPokz5BHWAQp
…s discovery

New monitoring modes:
- alerts: active alerts count by severity (critical/warning/info) with
  per-alert status check, age display and filters on severity/title/entity
- capacity: cluster-wide CPU (cores, usage%), memory (used/total/%) and
  storage (used/free/total/%) aggregated from hosts and storage pools
- health-checks: NCC health check results (pass/fail/warning/error counts)
  with per-check status and --only-failing option to reduce noise

New discovery mode:
- list-nics: VM NIC discovery with nic_id, mac, network, ip, connected
  fields; data extracted from vm_nics[] in the VM list (no extra API call)

Also adds get_alerts() and get_health_checks() methods to custom/api.pm.

https://claude.ai/code/session_01PXMdAKHbDqnPokz5BHWAQp
@psamecentreon
psamecentreon requested a review from a team as a code owner June 26, 2026 14:43
@psamecentreon
psamecentreon requested review from omercier and removed request for a team June 26, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants