mcelog plugin¶
| Plugin name | mcelog |
| Type | read |
| Callbacks | config, init, read, shutdown |
| Status | supported |
| Since | 5.8 |
| Copyright | 2016–2017 Intel Corporation |
| Configuration | collectd.conf(5) |
The purpose of mcelog plugin is to send notifications and stats relevant to Machine Check Exceptions (MCE) when they occur. The plugin leverages the mcelog Linux utility to detect that an exception has occurred. mcelog supports a client server model and does the logging and accounting of exceptions when they occur. The plugin simply leverages the client protocol of mcelog to detect when an exception has occurred. The goal of this equivalence feature is to expose Reliability, Availability and Serviceability (RAS) features metrics and events provided by the platform to higher level fault management applications. The plugin does the following:
- Checks mcelog server liveliness, reports a failure if it’s not running or if it fails.
- Retrieve aggregated Memory Corrected and Uncorrected Errors from the client protocol (Submit event/stat).
Mcelog must be configured to run on the platform in daemon mode and logging capabilities must be enabled. For a full description of available options please refer to the collectd.conf(5) manual page.
Synopsis¶
<Plugin mcelog>
<Memory>
McelogClientSocket "/var/run/mcelog-client"
PersistentNotification false
</Memory>
</Plugin>
Will be changed after branch "feat_mcelog_mem_notification_level" is merged (default if all commented for now is socket):
# <Plugin mcelog>
# <Memory>
# McelogClientSocket "/var/run/mcelog-client"
# PersistentNotification false
# </Memory>
# McelogLogfile "/var/log/mcelog"
# </Plugin>
Parameters¶
None yet
Metrics¶
|
|
|
|
|
|
|
|
|---|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example Graph¶
None yet. Add one now!
Dependencies¶
Also See¶
RAS/mcelog Plugin High Level Design Tests Executed
Configuration¶
Configuration options · from collectd.conf(5)
See this section in the full configuration reference
The mcelog plugin uses mcelog to retrieve machine check exceptions.
By default the plugin connects to "/var/run/mcelog-client" to check if the mcelog server is running. When the server is running, the plugin will tail the specified logfile to retrieve machine check exception information and send a notification with the details from the logfile. The plugin will use the mcelog client protocol to retrieve memory related machine check exceptions. Note that for memory exceptions, notifications are only sent when there is a change in the number of corrected/uncorrected memory errors.
The Memory block¶
Note: these options cannot be used in conjunction with the logfile options, they are mutually exclusive.
- McelogClientSocket Path Connect to the mcelog client socket using the UNIX domain socket at Path. Defaults to "/var/run/mcelog-client".
- PersistentNotification true|false Override default configuration to only send notifications when sent when there is a change in the number of corrected/uncorrected memory errors. When set to true notifications will be sent for every read cycle. Default is false. Does not affect the stats being dispatched.
- McelogLogfile Path
- The mcelog file to parse. Defaults to "/var/log/mcelog". Note: this option cannot be used in conjunction with the memory block options, they are mutually exclusive.