Skip to content

capabilities plugin

Plugin name capabilities
Type read
Callbacks init, config, shutdown
Status supported
Since 5.11
Copyright 2019 Intel Corporation, Kamil Wiatrowski
License MIT License
Configuration collectd.conf(5)

The capabilities plugin collects platform capabilities decoded from hardware subsystems, for example from SMBIOS using dmidecode. The static platform data is exposed through a micro embedded webserver and returned by the plugin in json format.

Synopsis

 <Plugin capabilities>
   Host "localhost"
   Port "9104"
 </Plugin>

Host - Bind to the given interface/address. By default, if option is not set, the plugin will bind to the "any" address, i.e. accept requests sent to any of the hosts interfaces/addresses. This option is supported only for libmicrohttpd newer than 0.9.0.

Port - Port the embedded webserver should listen on. Defaults to 9104.

Example graph

None yet. Add one now!

Dependencies

Caveats

Accessing the stats

The capabilities plugin doesn't operate like a regular read plugin. Since it exposes static information, there is no need to constantly sent the information to collectd. The information is exposed through a webserver and available by cURLing the Host:Port from the configuration. Examples:

curlĀ localhost:9104

curlĀ 10.237.214.26:50123

See also

  • capabilities/tests plugin

Configuration

Configuration options · from collectd.conf(5)

See this section in the full configuration reference

The capabilities plugin collects selected static platform data using dmidecode and expose it through micro embedded webserver. The data returned by plugin is in json format.

Synopsis:

<Plugin capabilities>
  Host "localhost"
  Port "9104"
</Plugin>

Available configuration options for the capabilities plugin:

Host Hostname

Bind to the hostname / address Host. By default, the plugin will bind to the "any" address, i.e. accept packets sent to any of the hosts addresses.

This option is supported only for libmicrohttpd newer than 0.9.0.

Port Port
Port the embedded webserver should listen on. Defaults to 9104.