Skip to main content

Proxmox VE

Prerequisites​

Centreon Plugin​

Install this plugin on each needed poller:

yum install centreon-plugin-Virtualization-Proxmox-Ve-Restapi

RestAPI Configuration​

API user need to have this privileges:

# VM.Monitor, VM.Audit, Datastore.Audit, Sys.Audit, Sys.Syslog'

Troubleshooting​

To check if you access to the api, you can run the following command :

#  curl -k -d "username=root@pam&password=yourpassword"  https://10.0.0.1:8006/api2/json/access/ticket

Centreon Configuration​

Create a host using the appropriate template​

Go to Configuration > Hosts and click Add. Then, fill the form as shown by the following table:

FieldValue
Host nameName of the host
AliasHost description
IPHost IP Address
Monitored fromMonitoring Poller to use
Host Multiple TemplatesVirt-Promox-Pe-Restapi-Custom

Host Macro Configuration​

The following macros must be configured on host:

Macro

Description

Default value

Example

PROXMOXAPIPORT

Port used to connect to the Proxmox API

8006

443

PROXMOXAPIUSERNAME

the Proxmox API user

PROXMOXAPIUSERNAME

monitoring

PROXMOXAPIPASSWORD

the Proxmox API user's password

PROXMOXAPIPASSWORD

HuGr6834

PROXMOXAPIREALM

the Proxmox API authentication mechanism

pam

pve

PROXMOXAPIPROTO

the Proxmox API protocol

https

http

Click on the Save button.