[% SET total_usage_meter_width = 400; IF NOTICE.usage_type == "inodes"; SET progress_bar_width = (total_usage_meter_width * NOTICE.used_inodes) div NOTICE.total_inodes; SET percentage = 100 * (NOTICE.total_inodes - NOTICE.available_inodes) / NOTICE.total_inodes; ELSE; SET progress_bar_width = (total_usage_meter_width * NOTICE.used_bytes) div NOTICE.total_bytes; SET percentage = 100 * (NOTICE.total_bytes - NOTICE.available) / NOTICE.total_bytes; END; SET percentage_disp = ((100 * percentage) div 1) / 100; SET usage_meter_remaining_width = total_usage_meter_width - progress_bar_width; -%] [% PROCESS "include/colors.tmpl"; PROCESS "include/icons.tmpl"; PROCESS "include/styles.tmpl"; PROCESS "include/code_block.tmpl"; PROCESS "include/progress_bar.tmpl"; WRAPPER 'wrapper/main.html.tmpl'; NOTICE.email_reason = CPANEL.locale.maketext('Disk usage warning'); %]
[% IF NOTICE.usage_type == 'blocks' -%] [% CPANEL.locale.maketext('The filesystem “[_1]” mounted at “[_2]” reached “[_3]” status because you currently use [numf,_4]% of its available blocks.', NOTICE.filesystem, NOTICE.mount, NOTICE.notify_type, percentage_disp, NOTICE.usage_type ); %] [% ELSIF NOTICE.usage_type == 'inodes' -%] [% CPANEL.locale.maketext('The filesystem “[_1]” mounted at “[_2]” reached “[_3]” status because you currently use [numf,_4]% of its available inodes.', NOTICE.filesystem, NOTICE.mount, NOTICE.notify_type, percentage_disp, NOTICE.usage_type ); %] [% ELSE -%] Unknown notification type ([% NOTICE.notify_type %])! [% END -%]
| [% CPANEL.locale.maketext('Notification Type') %]: | [% NOTICE.notify_type FILTER html %] [% get_icon(icon=NOTICE.notify_type) %] | ||||||
|---|---|---|---|---|---|---|---|
| [% 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('Filesystem') %]: | [% NOTICE.filesystem FILTER html %] | ||||||
| [% CPANEL.locale.maketext('Mount Point') %]: | [% NOTICE.mount FILTER html %] | ||||||
| [% CPANEL.locale.maketext('Percent Used') %]: | [% progress_bar(percent_full=percentage_disp) %] | ||||||
| [% CPANEL.locale.maketext('[asis,Inode] Usage') %]: |
|
||||||
| [% CPANEL.locale.maketext('Disk Block Usage') %]: |
|
||||||
| [% CPANEL.locale.maketext('[asis,ChkServd] Version') %]: | [% NOTICE.chkservd_version %] |
[% CPANEL.locale.maketext('Configure system disk usage notifications') %]:
[% NOTICE.tweaksettings_system_diskusage_url %]
[% CPANEL.locale.maketext('Disable [output,abbr,HTML,Hypertext Markup Language] notifications') %]:
[% NOTICE.tweaksettings_chkservd_plaintext_notify_url %]