Details
-
New Feature
-
Resolution: Incomplete
-
Minor
-
None
-
None
Description
This patch against r4386 adds preliminary support for
monitoring guests running on Proxmox VE platform. Both
OpenVZ containers and KVM virtual machines are supported.
Poller connects to Proxmox node via Proxmox's PVE2 API
and polls stats from all guests on all hosts in a cluster.
Stores RRD files under proxmox subdir for each device.
Included PVE2 API client code used by poller is taken from
https://github.com/CpuID/pve2-api-php-client.
It also adds "Proxmox VE Guests" tab on the device page
that displays CPU, Memory, Disk Usage, Disk I/O and Network
Traffic statistics for each guest.
Attachments
Issue Links
- is cloned by
-
OBS-494 Initial support for Proxmox VE guest monitoring
-
- Open
-
+ $graph_array['device'] = $device['device_id'];
+ $graph_array['group'] = $group;
+ // - our custom parameters that will be passed to graph.php
+ // and subsequently to our graph generating code when
+ // invoked from <img src="graph.php? ..."/> tag
+ $graph_array['clustername'] = $guest['cluster_name'];
+ $graph_array['guestid'] = $guest['guest_id'];
+ $graph_array['guestname'] = $guest['guest_name'];
+ $graph_array['guesttype'] = $guest['guest_type'];
+ // Generate <img src="graph.php? ..."/> tags on current page
Why are you passing all of this?
Please follow the existing coding style and pass the minimum required to identify the entity. The Observium standard is to pass a database-specific id, with an option to find the id if entity-specific data is passed (see the ports graphs, generally we pass a port_id, but they can also be accessed via ifName or ifIndex)