Skip to content

Virtualisation, Kubernetes and IBM

Some systems are read through their management interfaces rather than from inside each machine. One agent on a management host runs a module per system and reports what it finds. Every one of these modules only reads: none changes anything on the system it reads.

System Read through What Costif gets
VMware vSphere vCenter or an ESXi host, through the vSphere API Hosts and their hardware, virtual machines with power state, processors, memory, disks, snapshots and templates, and performance
Microsoft Hyper-V Windows PowerShell and a CIM session, from a Windows management host Hosts, virtual machines and performance, and the Windows products activated on each host
Kubernetes The cluster’s API server Clusters, nodes, namespaces and workloads, with what each workload requests and uses
IBM License Metric Tool The ILMT server’s REST API Computers, software and the processor value units (PVUs) ILMT counts
  • Virtual waste: machines powered off for the whole period, idle machines, machines with many snapshots, and templates. See Savings.
  • Kubernetes efficiency: per namespace, what workloads request against what they use. See Savings.
  • IBM PVU licences: an owned licence counted in PVUs is set against what ILMT counts. See Licence position.
  • Windows activation: the activation state of each Windows product on your Hyper-V hosts.

The inventory is read again at set intervals. After the first read, only new, changed and removed objects are sent.

Each system is set up in the console, on the agent of the management host that will read it. Install the agent on that host first (Agents › Install), then:

  1. Open Agents › Devices and pick the management host.
  2. In Assignment, choose the module: VMware vSphere inventory, Microsoft Hyper-V inventory, Kubernetes inventory or IBM licence servers.
  3. Turn on Run … on this device.
  4. Under the module’s list of servers, Add row once per server and fill it in. Each row’s Name (id) names that server in Costif: 1 to 63 letters, digits, - or _, different for every row.
  5. Set the row’s credentials with Set. They are write-only: Costif seals them for that one agent and never shows them again. They are never part of the settings themselves.
  6. Give a reason for the change and choose Save new version. Validate checks the settings first, and Versions shows every earlier version with what changed.

One module can read several servers: one row each. Every setting below is optional unless it says otherwise.

In the console Setting What to put
Name id Required.
URL url Required. vCenter or an ESXi host, https:// only, e.g. https://vcenter.example.com/sdk. Without a path, /sdk is used.
User name, Password secrets An account with the read-only role on the root of the inventory, propagated. Storage policies also need Profile-driven storage view.
Read the inventory every inventory_interval_s Default an hour.
Send performance every performance_interval_s Default five minutes.
Do not read the event history, Read events every events_disabled, events_interval_s The event history is read every five minutes unless switched off.
Do not read the performance history, Read the performance history every history_disabled, history_interval_s Read every hour unless switched off; the first run reads back 30 days (history_days).

Under Advanced: how far back the first run reads events (events_window_h), the event types to read (event_types), the per-run limits (events_max_per_run, history_max_samples, history_max_query_metrics), and Licence key fingerprint key (fingerprint_key), a secret for the whole module. Licence keys are never sent, only a fingerprint of each; give every agent the same fingerprint key so the same key read by two agents is recognised as one.

The module runs on Windows only, on a host with the Hyper-V PowerShell module (RSAT). It reads each Hyper-V host remotely over WinRM.

In the console Setting What to put
Name id Required.
Host host Required. The name or address WinRM is reached at.
WinRM over HTTPS use_ssl Off by default: WinRM then encrypts the messages itself (Kerberos or NTLM).
Port port Under Advanced. Empty means 5985, or 5986 over HTTPS.
User name, Password, Domain secrets Domain only for a domain account. The account must be in the host’s Hyper-V Administrators and Remote Management Users groups.
Read the inventory every inventory_interval_s Default an hour.
Send performance every performance_interval_s Default five minutes.
Read resource metering every metering_interval_s Default an hour.
In the console Setting What to put
Name id Required.
URL url The API server, e.g. https://k8s.example.com:6443.
Token secret A bearer token allowed to get and list nodes, namespaces, pods, persistent volumes and claims, replica sets, jobs and, for usage, the metrics API. Only nodes are required; what the token may not read is reported as not read.
The cluster the agent runs in in_cluster For an agent running in a pod of the cluster it reads: leave the URL empty, and the address, token and certificate authority come from the pod’s service account.
Read the inventory every inventory_interval_s Default an hour.
Send performance every performance_interval_s Default five minutes.
In the console Setting What to put
Name id Required.
Server type ilmt.
URL url Required. The ILMT server, e.g. https://ilmt.example.com:9081.
Token secret The API token of an ILMT user who may view computers and software.
Read the inventory every inventory_interval_s Default an hour.

vSphere, Kubernetes and ILMT are reached over TLS 1.3, and the server’s certificate is checked against the host’s trusted roots and the server’s name. A row’s Advanced settings change that for one server, one at most of:

  • Certificate authority (PEM) (ca_pem): check against your own certificate authority instead.
  • Pinned certificate SHA-256 (pinned_sha256): accept only the one certificate with this fingerprint. For a self-signed management server this is stronger than a chain check.
  • Skip certificate verification (insecure_skip_verify): accept any certificate.

Allow TLS 1.2 (allow_tls12) is for servers that do not speak TLS 1.3. Skipping verification and allowing TLS 1.2 are logged as a warning on every run.

The module writes to the agent’s log, per server, what it could not read and why, from a fixed list: for example credentials rejected, permission denied, no credentials, certificate not trusted or unreachable. The reason never carries a password, a token or what the server answered.