Skip to content

Example of Nutanix discovery (Prism Central or Prism Element) to import in EfficientIP Cloud Observer written in Javascript (Node.js)

License

Notifications You must be signed in to change notification settings

slysiou/EIP-Nutanix-discover.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EfficientIP Cloud Observer external plugin for Nutanix

Get information from Prism Element or Prism Central and generate data file for EfficientIP Cloud Observer.

The generated file must be pushed to the /data1/tmp/cloud_observer/ of the EfficientIP SOLIDserver to be integrated through the normal croned job (every minute).

Documentation

Nutanix API v3 is available on Nutanix developper website

Swagger in also available on Prism UI. By default v2 is presented. Change URL to v3 to see it.

.env

Use the sample file to create a .env.

like:

NTNX_USER="admin"
NTNX_PASSWORD="nutanix/4u"
NTNX_URL="https://prismcentral.local:9440/api/nutanix/v3"

EIP_UUID="DBCDFED3-994D-4F51-9605-C5799DC8B929"
EIP_IP="10.10.10.1"
EIP_USER="cloudobserver"
EIP_PATH="/home/cloudobserver"

Objects imported

Folder

Folder name is based on cluster name.

Instance

Instance name is based on VM name (excluding Nutanix CVM).

Network

Network name is based on Nutanix Subnet defined on the cluster.

IPs

Each VM Network interface has 1 Mac address, multiple IP addresses connected to 1 Network.

Installation

npm install

or

yarn install

Run the script

node main.js

About

Example of Nutanix discovery (Prism Central or Prism Element) to import in EfficientIP Cloud Observer written in Javascript (Node.js)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published