[%# Available NOTICE keys The process_killed and data keys are always provided { 'data' => 'A block of OOM messages from dmesg...', 'uid' => 'The uid of the process that OOM killed', 'user' => 'The username of the process that OOM killed', 'pid' => 'The pid of the process that OOM killed', 'proc_name' => 'The name of the process that OOM killed', 'score' => 'The OOM score of the process that OOM killed', 'total_vm' => 'The total system virtual memory consumed by the process that OOM killed', 'anon_rss' => 'The anonymous resident set size consumed by the process that OOM killed', 'file_rss' => 'The file resident set size consumed by the process that OOM killed', 'process_killed' => '1 if OOM killed a process, 0 if no process was killed' } %] [% PROCESS "include/colors.tmpl"; PROCESS "include/icons.tmpl"; PROCESS "include/styles.tmpl"; PROCESS "include/code_inline.tmpl"; PROCESS "include/code_block.tmpl"; PROCESS 'include/system_info_rows.tmpl'; WRAPPER 'wrapper/main.html.tmpl'; IF NOTICE.proc_name; NOTICE.email_reason = CPANEL.locale.maketext('Out of memory: The process “[_1]” was terminated because the system is low on memory.', NOTICE.proc_name); ELSE; NOTICE.email_reason = CPANEL.locale.maketext('Out of memory: A process was terminated because the system is low on memory.'); END; SET zebra_stripe = 0; %]

[% IF NOTICE.pid && NOTICE.proc_name %] [% CPANEL.locale.maketext('In order to avoid a system crash due to low memory, the kernel terminated the process named “[_1]” with the [output,abbr,PID,process ID] “[_2]”.', NOTICE.proc_name, NOTICE.pid) %] [% ELSIF NOTICE.proc_name %] [% CPANEL.locale.maketext('In order to avoid a system crash due to low memory, the kernel terminated the process named “[_1]”.', NOTICE.proc_name) %] [% ELSIF NOTICE.pid %] [% CPANEL.locale.maketext('In order to avoid a system crash due to low memory, the kernel terminated the process with [output,abbr,PID,process ID] “[_1]”.', NOTICE.pid) %] [% END %] [% zebra_stripe = !zebra_stripe %] [% zebra_stripe = !zebra_stripe %] [% IF NOTICE.proc_name %] [% zebra_stripe = !zebra_stripe %] [% END %] [% IF NOTICE.time %] [% zebra_stripe = !zebra_stripe %] [% END %] [% IF NOTICE.pid %] [% zebra_stripe = !zebra_stripe %] [% END %] [% IF NOTICE.uid.size %] [% zebra_stripe = !zebra_stripe %] [% END %] [% IF NOTICE.user %] [% zebra_stripe = !zebra_stripe %] [% END %] [% IF NOTICE.total_vm %] [% zebra_stripe = !zebra_stripe %] [% END %] [% IF NOTICE.anon_rss %] [% zebra_stripe = !zebra_stripe %] [% END %] [% IF NOTICE.file_rss %] [% zebra_stripe = !zebra_stripe %] [% END %] [% IF NOTICE.score %] [% zebra_stripe = !zebra_stripe %] [% END %] [% zebra_stripe = !zebra_stripe %] [% SET system_info_table_zebra = zebra_strip; %] [% system_info_rows() %]
[% CPANEL.locale.maketext('Server') %] [% NOTICE.hostname FILTER html %]
[% CPANEL.locale.maketext('Primary [output,abbr,IP,Internet Protocol] Address') %] [% NOTICE.mainip FILTER html %]
[% CPANEL.locale.maketext('Process Name') %] [% NOTICE.proc_name FILTER html %]
[% CPANEL.locale.maketext('Event Time') %] [% CPANEL.locale.datetime(NOTICE.time, 'datetime_format_full') %]
[% CPANEL.locale.maketext('[output,abbr,PID,process ID]') %] [% NOTICE.pid FILTER html %]
[% CPANEL.locale.maketext('Process [output,abbr,UID,user ID]') %] [% NOTICE.uid FILTER html %]
[% CPANEL.locale.maketext('Process Username') %] [% NOTICE.user FILTER html %]
[% CPANEL.locale.maketext('Process Total Virtual Memory') %] [% NOTICE.total_vm FILTER html %]
[% CPANEL.locale.maketext('Process Anonymous Resident Set Size') %] [% NOTICE.anon_rss FILTER html %]
[% CPANEL.locale.maketext('Process File Resident Set Size') %] [% NOTICE.file_rss FILTER html %]
[% CPANEL.locale.maketext('Process [output,abbr,OOM,Out Of Memory] Score') %] [% NOTICE.score FILTER html %]
[% CPANEL.locale.maketext('Status') %] [% CPANEL.locale.maketext('Out of Memory') %] [% get_icon(icon='warn') %]

[% CPANEL.locale.maketext('For addtional details, see the attached [asis,dmesg] log dump.') %]

[% FOREACH log IN NOTICE.log_preview %] [% SET loop_index = loop.index; %] [% code_block(formatted_code=log, title=CPANEL.locale.maketext('Preview of “[_1]”', NOTICE.log_preview_name.$loop_index) ) %] [% END %]

[% CPANEL.locale.maketext('Configure Monitor[comment,program that observes] Settings'); %]:
[% NOTICE.service_manager_url %]

[% CPANEL.locale.maketext('Configure [asis,chkservd]'); %]:
[% NOTICE.tweaksettings_chkservd_url %]

[% CPANEL.locale.maketext('Disable [output,abbr,HTML,Hypertext Markup Language] notifications'); %]:
[% NOTICE.tweaksettings_chkservd_plaintext_notify_url %]

[% END %]