NAME

Monitoring::Sneck::Checks::edac - checks for memory errors Linux's EDAC has counted

VERSION

Version 0.0.1

SYNOPSIS

edac|perl:edac
edac_ecc_box|perl:edac -r -w 10 -c 100

DESCRIPTION

Reads the corrected and uncorrected memory error counts of each memory controller under /sys/devices/system/edac/mc, without rasdaemon. See Monitoring::Sneck::Checks::linux_ras for that.

- CRITICAL :: Any uncorrected errors. Corrected errors over --critical.

- WARNING :: Corrected errors over --warning. No memory controllers with --required.

- UNKNOWN :: Not being Linux, or a controller's counts not being readable.

- OK :: Everything else, including no memory controllers, as on VMs and boxes without ECC or a EDAC driver, so the same check can go everywhere.

The counts are since boot, or since they were last reset by writing to reset_counters of the controller.

The DIMMs with errors are named, by their label or as mc0 dimm2 if it has none, as are errors EDAC could not tie to a DIMM. A line for each controller follows the status line.

OPTIONS

- -w, --warning :: Range for corrected errors. Default :: 0

- -c, --critical :: Range for corrected errors.

- -r, --required :: WARNING if there are no memory controllers, for boxes that should have ECC and a EDAC driver loaded.

METHODS

check

Does the check.