Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34 - 1
#!/bin/sh
2
#  This shell script can be executed by mcelog in daemon mode when a DIMM
3
#  exceeds a pre-configured error threshold
4
#
5
# environment:
6
# THRESHOLD     human readable threshold status
7
# MESSAGE	Human readable consolidated error message
8
# TOTALCOUNT    total count of errors for current DIMM of CE/UC depending on
9
#		what triggered the event
10
# LOCATION	Consolidated location as a single string
11
# DMI_LOCATION  DIMM location from DMI/SMBIOS if available
12
# DMI_NAME	DIMM identifier from DMI/SMBIOS if available
13
# DIMM		DIMM number reported by hardware
14
# CHANNEL	Channel number reported by hardware
15
# SOCKETID	Socket ID of CPU that includes the memory controller with the DIMM
16
# CECOUNT	Total corrected error count for DIMM
17
# UCCOUNT	Total uncorrected error count for DIMM
18
# LASTEVENT	Time stamp of event that triggered threshold (in time_t format, seconds)
19
# THRESHOLD_COUNT Total umber of events in current threshold time period of specific type
20
#
21
# note: will run as mcelog configured user
22
# this can be changed in mcelog.conf
23
 
24
logger -s -p daemon.err -t mcelog "$MESSAGE"
25
logger -s -p daemon.err -t mcelog "Location: $LOCATION"
26
 
27
[ -x ./dimm-error-trigger.local ] && . ./dimm-error-trigger.local
28
 
29
exit 0